public sealed class GrpcCoreAdapter : GrpcAdapter
Implementation of GrpcAdapter for Grpc.Core.
Namespace
Google.Api.Gax.Grpc.GrpcCoreAssembly
Google.Api.Gax.Grpc.GrpcCore.dll
Properties
Instance
public static GrpcCoreAdapter Instance { get; }
Returns the singleton instance of this class.
Property Value | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
options |
GrpcChannelOptions The options to convert. Must not be null. |
Returns | |
---|---|
Type | Description |
IReadOnlyList<ChannelOption> |
The converted list of options. |
CreateChannelImpl(String, ChannelCredentials, GrpcChannelOptions)
protected override ChannelBase CreateChannelImpl(string endpoint, ChannelCredentials credentials, GrpcChannelOptions options)
Parameters | |
---|---|
Name | Description |
endpoint |
String |
credentials |
ChannelCredentials |
options |
GrpcChannelOptions |
Returns | |
---|---|
Type | Description |
ChannelBase |