Class GrpcCoreAdapter (3.2.0)

public sealed class GrpcCoreAdapter : GrpcAdapter

Implementation of GrpcAdapter for Grpc.Core.

Inheritance

Object > GrpcAdapter > GrpcCoreAdapter

Namespace

Google.Api.Gax.Grpc.GrpcCore

Assembly

Google.Api.Gax.Grpc.GrpcCore.dll

Properties

Instance

public static GrpcCoreAdapter Instance { get; }

Returns the singleton instance of this class.

Property Value
TypeDescription
GrpcCoreAdapter

Methods

ConvertOptions(GrpcChannelOptions)

public IReadOnlyList<ChannelOption> ConvertOptions(GrpcChannelOptions options)

Converts a GrpcChannelOptions (defined in Google.Api.Gax.Grpc) into a list of (defined in Grpc.Core).

Parameter
NameDescription
optionsGrpcChannelOptions

The options to convert. Must not be null.

Returns
TypeDescription
IReadOnlyList<ChannelOption>

The converted list of options.

CreateChannelImpl(String, ChannelCredentials, GrpcChannelOptions)

protected override ChannelBase CreateChannelImpl(string endpoint, ChannelCredentials credentials, GrpcChannelOptions options)
Parameters
NameDescription
endpointString
credentialsChannelCredentials
optionsGrpcChannelOptions
Returns
TypeDescription
ChannelBase