diff --git a/src/csharp/Grpc.Examples/MathGrpc.cs b/src/csharp/Grpc.Examples/MathGrpc.cs
index 4bbefcbe01a..25abc514195 100644
--- a/src/csharp/Grpc.Examples/MathGrpc.cs
+++ b/src/csharp/Grpc.Examples/MathGrpc.cs
@@ -128,17 +128,22 @@ namespace Math {
/// Client for Math
public class MathClient : ClientBase
{
+ /// Creates a new client for Math
+ /// The channel to use to make remote calls.
public MathClient(Channel channel) : base(channel)
{
}
+ /// Creates a new client for Math that uses a custom CallInvoker.
+ /// The callInvoker to use to make remote calls.
public MathClient(CallInvoker callInvoker) : base(callInvoker)
{
}
- ///Protected parameterless constructor to allow creation of test doubles.
+ /// Protected parameterless constructor to allow creation of test doubles.
protected MathClient() : base()
{
}
- ///Protected constructor to allow creation of configured clients.
+ /// Protected constructor to allow creation of configured clients.
+ /// The client configuration.
protected MathClient(ClientBaseConfiguration configuration) : base(configuration)
{
}
@@ -235,12 +240,6 @@ namespace Math {
}
}
- /// Creates a new client for Math
- public static MathClient NewClient(Channel channel)
- {
- return new MathClient(channel);
- }
-
/// Creates service definition that can be registered with a server
public static ServerServiceDefinition BindService(MathBase serviceImpl)
{
diff --git a/src/csharp/Grpc.HealthCheck/HealthGrpc.cs b/src/csharp/Grpc.HealthCheck/HealthGrpc.cs
index d0ade7d02be..43eea0f22f5 100644
--- a/src/csharp/Grpc.HealthCheck/HealthGrpc.cs
+++ b/src/csharp/Grpc.HealthCheck/HealthGrpc.cs
@@ -71,17 +71,22 @@ namespace Grpc.Health.V1 {
/// Client for Health
public class HealthClient : ClientBase
{
+ /// Creates a new client for Health
+ /// The channel to use to make remote calls.
public HealthClient(Channel channel) : base(channel)
{
}
+ /// Creates a new client for Health that uses a custom CallInvoker.
+ /// The callInvoker to use to make remote calls.
public HealthClient(CallInvoker callInvoker) : base(callInvoker)
{
}
- ///Protected parameterless constructor to allow creation of test doubles.
+ /// Protected parameterless constructor to allow creation of test doubles.
protected HealthClient() : base()
{
}
- ///Protected constructor to allow creation of configured clients.
+ /// Protected constructor to allow creation of configured clients.
+ /// The client configuration.
protected HealthClient(ClientBaseConfiguration configuration) : base(configuration)
{
}
@@ -108,12 +113,6 @@ namespace Grpc.Health.V1 {
}
}
- /// Creates a new client for Health
- public static HealthClient NewClient(Channel channel)
- {
- return new HealthClient(channel);
- }
-
/// Creates service definition that can be registered with a server
public static ServerServiceDefinition BindService(HealthBase serviceImpl)
{
diff --git a/src/csharp/Grpc.IntegrationTesting/MetricsGrpc.cs b/src/csharp/Grpc.IntegrationTesting/MetricsGrpc.cs
index 22bd27ec0aa..040798e3c21 100644
--- a/src/csharp/Grpc.IntegrationTesting/MetricsGrpc.cs
+++ b/src/csharp/Grpc.IntegrationTesting/MetricsGrpc.cs
@@ -97,17 +97,22 @@ namespace Grpc.Testing {
/// Client for MetricsService
public class MetricsServiceClient : ClientBase
{
+ /// Creates a new client for MetricsService
+ /// The channel to use to make remote calls.
public MetricsServiceClient(Channel channel) : base(channel)
{
}
+ /// Creates a new client for MetricsService that uses a custom CallInvoker.
+ /// The callInvoker to use to make remote calls.
public MetricsServiceClient(CallInvoker callInvoker) : base(callInvoker)
{
}
- ///Protected parameterless constructor to allow creation of test doubles.
+ /// Protected parameterless constructor to allow creation of test doubles.
protected MetricsServiceClient() : base()
{
}
- ///Protected constructor to allow creation of configured clients.
+ /// Protected constructor to allow creation of configured clients.
+ /// The client configuration.
protected MetricsServiceClient(ClientBaseConfiguration configuration) : base(configuration)
{
}
@@ -162,12 +167,6 @@ namespace Grpc.Testing {
}
}
- /// Creates a new client for MetricsService
- public static MetricsServiceClient NewClient(Channel channel)
- {
- return new MetricsServiceClient(channel);
- }
-
/// Creates service definition that can be registered with a server
public static ServerServiceDefinition BindService(MetricsServiceBase serviceImpl)
{
diff --git a/src/csharp/Grpc.IntegrationTesting/ServicesGrpc.cs b/src/csharp/Grpc.IntegrationTesting/ServicesGrpc.cs
index 9c99296115c..e205dea93ea 100644
--- a/src/csharp/Grpc.IntegrationTesting/ServicesGrpc.cs
+++ b/src/csharp/Grpc.IntegrationTesting/ServicesGrpc.cs
@@ -93,17 +93,22 @@ namespace Grpc.Testing {
/// Client for BenchmarkService
public class BenchmarkServiceClient : ClientBase
{
+ /// Creates a new client for BenchmarkService
+ /// The channel to use to make remote calls.
public BenchmarkServiceClient(Channel channel) : base(channel)
{
}
+ /// Creates a new client for BenchmarkService that uses a custom CallInvoker.
+ /// The callInvoker to use to make remote calls.
public BenchmarkServiceClient(CallInvoker callInvoker) : base(callInvoker)
{
}
- ///Protected parameterless constructor to allow creation of test doubles.
+ /// Protected parameterless constructor to allow creation of test doubles.
protected BenchmarkServiceClient() : base()
{
}
- ///Protected constructor to allow creation of configured clients.
+ /// Protected constructor to allow creation of configured clients.
+ /// The client configuration.
protected BenchmarkServiceClient(ClientBaseConfiguration configuration) : base(configuration)
{
}
@@ -162,12 +167,6 @@ namespace Grpc.Testing {
}
}
- /// Creates a new client for BenchmarkService
- public static BenchmarkServiceClient NewClient(Channel channel)
- {
- return new BenchmarkServiceClient(channel);
- }
-
/// Creates service definition that can be registered with a server
public static ServerServiceDefinition BindService(BenchmarkServiceBase serviceImpl)
{
@@ -273,17 +272,22 @@ namespace Grpc.Testing {
/// Client for WorkerService
public class WorkerServiceClient : ClientBase
{
+ /// Creates a new client for WorkerService
+ /// The channel to use to make remote calls.
public WorkerServiceClient(Channel channel) : base(channel)
{
}
+ /// Creates a new client for WorkerService that uses a custom CallInvoker.
+ /// The callInvoker to use to make remote calls.
public WorkerServiceClient(CallInvoker callInvoker) : base(callInvoker)
{
}
- ///Protected parameterless constructor to allow creation of test doubles.
+ /// Protected parameterless constructor to allow creation of test doubles.
protected WorkerServiceClient() : base()
{
}
- ///Protected constructor to allow creation of configured clients.
+ /// Protected constructor to allow creation of configured clients.
+ /// The client configuration.
protected WorkerServiceClient(ClientBaseConfiguration configuration) : base(configuration)
{
}
@@ -398,12 +402,6 @@ namespace Grpc.Testing {
}
}
- /// Creates a new client for WorkerService
- public static WorkerServiceClient NewClient(Channel channel)
- {
- return new WorkerServiceClient(channel);
- }
-
/// Creates service definition that can be registered with a server
public static ServerServiceDefinition BindService(WorkerServiceBase serviceImpl)
{
diff --git a/src/csharp/Grpc.IntegrationTesting/TestGrpc.cs b/src/csharp/Grpc.IntegrationTesting/TestGrpc.cs
index 6c252013f84..3e149da3e01 100644
--- a/src/csharp/Grpc.IntegrationTesting/TestGrpc.cs
+++ b/src/csharp/Grpc.IntegrationTesting/TestGrpc.cs
@@ -168,17 +168,22 @@ namespace Grpc.Testing {
/// Client for TestService
public class TestServiceClient : ClientBase
{
+ /// Creates a new client for TestService
+ /// The channel to use to make remote calls.
public TestServiceClient(Channel channel) : base(channel)
{
}
+ /// Creates a new client for TestService that uses a custom CallInvoker.
+ /// The callInvoker to use to make remote calls.
public TestServiceClient(CallInvoker callInvoker) : base(callInvoker)
{
}
- ///Protected parameterless constructor to allow creation of test doubles.
+ /// Protected parameterless constructor to allow creation of test doubles.
protected TestServiceClient() : base()
{
}
- ///Protected constructor to allow creation of configured clients.
+ /// Protected constructor to allow creation of configured clients.
+ /// The client configuration.
protected TestServiceClient(ClientBaseConfiguration configuration) : base(configuration)
{
}
@@ -315,12 +320,6 @@ namespace Grpc.Testing {
}
}
- /// Creates a new client for TestService
- public static TestServiceClient NewClient(Channel channel)
- {
- return new TestServiceClient(channel);
- }
-
/// Creates service definition that can be registered with a server
public static ServerServiceDefinition BindService(TestServiceBase serviceImpl)
{
@@ -373,17 +372,22 @@ namespace Grpc.Testing {
/// Client for UnimplementedService
public class UnimplementedServiceClient : ClientBase
{
+ /// Creates a new client for UnimplementedService
+ /// The channel to use to make remote calls.
public UnimplementedServiceClient(Channel channel) : base(channel)
{
}
+ /// Creates a new client for UnimplementedService that uses a custom CallInvoker.
+ /// The callInvoker to use to make remote calls.
public UnimplementedServiceClient(CallInvoker callInvoker) : base(callInvoker)
{
}
- ///Protected parameterless constructor to allow creation of test doubles.
+ /// Protected parameterless constructor to allow creation of test doubles.
protected UnimplementedServiceClient() : base()
{
}
- ///Protected constructor to allow creation of configured clients.
+ /// Protected constructor to allow creation of configured clients.
+ /// The client configuration.
protected UnimplementedServiceClient(ClientBaseConfiguration configuration) : base(configuration)
{
}
@@ -422,12 +426,6 @@ namespace Grpc.Testing {
}
}
- /// Creates a new client for UnimplementedService
- public static UnimplementedServiceClient NewClient(Channel channel)
- {
- return new UnimplementedServiceClient(channel);
- }
-
/// Creates service definition that can be registered with a server
public static ServerServiceDefinition BindService(UnimplementedServiceBase serviceImpl)
{
@@ -485,17 +483,22 @@ namespace Grpc.Testing {
/// Client for ReconnectService
public class ReconnectServiceClient : ClientBase
{
+ /// Creates a new client for ReconnectService
+ /// The channel to use to make remote calls.
public ReconnectServiceClient(Channel channel) : base(channel)
{
}
+ /// Creates a new client for ReconnectService that uses a custom CallInvoker.
+ /// The callInvoker to use to make remote calls.
public ReconnectServiceClient(CallInvoker callInvoker) : base(callInvoker)
{
}
- ///Protected parameterless constructor to allow creation of test doubles.
+ /// Protected parameterless constructor to allow creation of test doubles.
protected ReconnectServiceClient() : base()
{
}
- ///Protected constructor to allow creation of configured clients.
+ /// Protected constructor to allow creation of configured clients.
+ /// The client configuration.
protected ReconnectServiceClient(ClientBaseConfiguration configuration) : base(configuration)
{
}
@@ -538,12 +541,6 @@ namespace Grpc.Testing {
}
}
- /// Creates a new client for ReconnectService
- public static ReconnectServiceClient NewClient(Channel channel)
- {
- return new ReconnectServiceClient(channel);
- }
-
/// Creates service definition that can be registered with a server
public static ServerServiceDefinition BindService(ReconnectServiceBase serviceImpl)
{