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.
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).
Type | Name | Description |
---|---|---|
GrpcChannelOptions | options | The options to convert. Must not be null. |
Type | Description |
---|---|
IReadOnlyList<ChannelOption> | The converted list of options. |
CreateChannelImpl(String, ChannelCredentials, GrpcChannelOptions)
protected override ChannelBase CreateChannelImpl(string endpoint, ChannelCredentials credentials, GrpcChannelOptions options)
Type | Name | Description |
---|---|---|
String | endpoint | |
ChannelCredentials | credentials | |
GrpcChannelOptions | options |
Type | Description |
---|---|
ChannelBase |