Class GrpcAdapter (3.2.0)

public abstract class GrpcAdapter

Interoperability layer for the aspects of gRPC that aren't covered by Grpc.Core.Api.

Inheritance

Object > GrpcAdapter

Namespace

Google.Api.Gax.Grpc

Assembly

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
NameDescription
endpointString

The endpoint to connect to. Must not be null.

credentialsChannelCredentials

The channel credentials to use. Must not be null.

optionsGrpcChannelOptions

The channel options to use. Must not be null.

Returns
TypeDescription
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
NameDescription
endpointString

The endpoint to connect to. Will not be null.

credentialsChannelCredentials

The channel credentials to use. Will not be null.

optionsGrpcChannelOptions

The channel options to use. Will not be null.

Returns
TypeDescription
ChannelBase

A channel for the specified settings.