Class GrpcAdapter (4.0.0)

public abstract class GrpcAdapter

Interoperability layer for different gRPC transports. Concrete subclasses are GrpcCoreAdapter, GrpcNetClientAdapter and RestGrpcAdapter.

Inheritance

Object > GrpcAdapter

Namespace

Google.Api.Gax.Grpc

Assembly

Google.Api.Gax.Grpc.dll

Remarks

This is an abstract class with all concrete subclasses internal, and internal abstract methods to prevent instantiation elsewhere. (The abstraction itself may change over time.)

Methods

GetFallbackAdapter(ServiceMetadata)

public static GrpcAdapter GetFallbackAdapter(ServiceMetadata serviceMetadata)

Returns a fallback provider suitable for the given API

Parameter
NameDescription
serviceMetadataServiceMetadata

The descriptor of the API. Must not be null.

Returns
TypeDescription
GrpcAdapter

A suitable GrpcAdapter for the given API, preferring the use of the binary gRPC transport where available.