public abstract class GrpcAdapter
Interoperability layer for the aspects of gRPC that aren't covered by Grpc.Core.Api.
Namespace
Google.Api.Gax.GrpcAssembly
Google.Api.Gax.Grpc.dll
Methods
CreateChannel(String, ChannelCredentials, GrpcChannelOptions)
public ChannelBase CreateChannel(string endpoint, ChannelCredentials credentials, GrpcChannelOptions options)
Creates a channel for the given endpoint, using the given credentials and options.
Parameters | |
---|---|
Name | Description |
endpoint | String The endpoint to connect to. Must not be null. |
credentials | ChannelCredentials The channel credentials to use. Must not be null. |
options | GrpcChannelOptions The channel options to use. Must not be null. |
Returns | |
---|---|
Type | Description |
ChannelBase | A channel for the specified settings. |
CreateChannelImpl(String, ChannelCredentials, GrpcChannelOptions)
protected abstract ChannelBase CreateChannelImpl(string endpoint, ChannelCredentials credentials, GrpcChannelOptions options)
Creates a channel for the given endpoint, using the given credentials and options. All parameters are pre-validated to be non-null.
Parameters | |
---|---|
Name | Description |
endpoint | String The endpoint to connect to. Will not be null. |
credentials | ChannelCredentials The channel credentials to use. Will not be null. |
options | GrpcChannelOptions The channel options to use. Will not be null. |
Returns | |
---|---|
Type | Description |
ChannelBase | A channel for the specified settings. |