Class GrpcClientFactory
A factory abstraction for a component that can create gRPC client instances with custom configuration for a given logical name.
Inheritance
System.Object
GrpcClientFactory
Namespace: Grpc.Net.ClientFactory
Assembly: Grpc.Net.ClientFactory.dll
Syntax
public abstract class GrpcClientFactory : object
Methods
CreateClient<TClient>(String)
Create a gRPC client instance for the specified TClient and configuration name.
Declaration
public abstract TClient CreateClient<TClient>(string name)
where TClient : ClientBase
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The configuration name. |
Returns
| Type | Description |
|---|---|
| TClient | A gRPC client instance. |
Type Parameters
| Name | Description |
|---|---|
| TClient | The gRPC client type. |