Class GrpcNetClientAdapter (4.0.0)

public sealed class GrpcNetClientAdapter : GrpcAdapter

Implementation of GrpcAdapter for Grpc.Net.Client.

Inheritance

Object > GrpcAdapter > GrpcNetClientAdapter

Namespace

Google.Api.Gax.Grpc

Assembly

Google.Api.Gax.Grpc.dll

Properties

Default

public static GrpcNetClientAdapter Default { get; }

Returns the default instance of this class.

Property Value
TypeDescription
GrpcNetClientAdapter

Methods

WithAdditionalOptions(Action<Grpc.Net.Client.GrpcChannelOptions>)

public GrpcNetClientAdapter WithAdditionalOptions(Action<Grpc.Net.Client.GrpcChannelOptions> configure)

Returns a new instance based on this one, but with the additional options configurer specified. The options configurer is called after creating the from other settings, but before creating the .

Parameter
NameDescription
configureAction<Grpc.Net.Client.GrpcChannelOptions>

An optional configuration delegate to apply to instances of before they are provided to a , after any configuration applied by this adapter. May be null, in which case a new instance is returned but with the same option configurer as this one.

Returns
TypeDescription
GrpcNetClientAdapter

A new adapter based on this one, but with an additional channel options configuration action.