Class GrpcCoreAdapter

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

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
TypeNameDescription
Stringendpoint
ChannelCredentialscredentials
GrpcChannelOptionsoptions
Returns
TypeDescription
ChannelBase