Show / Hide Table of Contents

Class GrpcAdapter

Interoperability layer for the aspects of gRPC that aren't covered by Grpc.Core.Api.

Inheritance
System.Object
GrpcAdapter
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Api.Gax.Grpc
Assembly: Google.Api.Gax.Grpc.dll
Syntax
public abstract class GrpcAdapter

Methods

CreateChannel(String, ChannelCredentials, GrpcChannelOptions)

Creates a channel for the given endpoint, using the given credentials and options.

Declaration
public ChannelBase CreateChannel(string endpoint, ChannelCredentials credentials, GrpcChannelOptions options)
Parameters
Type Name Description
System.String endpoint

The endpoint to connect to. Must not be null.

ChannelCredentials credentials

The channel credentials to use. Must not be null.

GrpcChannelOptions options

The channel options to use. Must not be null.

Returns
Type Description
ChannelBase

A channel for the specified settings.

CreateChannelImpl(String, ChannelCredentials, GrpcChannelOptions)

Creates a channel for the given endpoint, using the given credentials and options. All parameters are pre-validated to be non-null.

Declaration
protected abstract ChannelBase CreateChannelImpl(string endpoint, ChannelCredentials credentials, GrpcChannelOptions options)
Parameters
Type Name Description
System.String endpoint

The endpoint to connect to. Will not be null.

ChannelCredentials credentials

The channel credentials to use. Will not be null.

GrpcChannelOptions options

The channel options to use. Will not be null.

Returns
Type Description
ChannelBase

A channel for the specified settings.

Back to top