Class GrpcAdapter

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
TypeNameDescription
Stringendpoint

The endpoint to connect to. Must not be null.

ChannelCredentialscredentials

The channel credentials to use. Must not be null.

GrpcChannelOptionsoptions

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
TypeNameDescription
Stringendpoint

The endpoint to connect to. Will not be null.

ChannelCredentialscredentials

The channel credentials to use. Will not be null.

GrpcChannelOptionsoptions

The channel options to use. Will not be null.

Returns
TypeDescription
ChannelBase

A channel for the specified settings.