Namespace Grpc.Core (2.66.0)

Classes

AsyncClientStreamingCall<TRequest, TResponse>

Return type for client streaming calls.

AsyncDuplexStreamingCall<TRequest, TResponse>

Return type for bidirectional streaming calls.

AsyncServerStreamingCall<TResponse>

Return type for server streaming calls.

AsyncStreamReaderExtensions

Extension methods for IAsyncStreamReader<T>.

AsyncUnaryCall<TResponse>

Return type for single request - single response call.

AuthContext

Authentication context for a call. AuthContext is the only reliable source of truth when it comes to authenticating calls. Using any other call/context properties for authentication purposes is wrong and inherently unsafe. Note: experimental API that can change or be removed without any prior notice.

AuthInterceptorContext

Context for an RPC being intercepted by AsyncAuthInterceptor.

AuthProperty

A property of an AuthContext. Note: experimental API that can change or be removed without any prior notice.

BindServiceMethodAttribute

Specifies the location of the service bind method for a gRPC service. The bind method is typically generated code and is used to register a service's methods with the server on startup.

The bind method signature takes a ServiceBinderBase and an optional instance of the service base class, e.g. static void BindService(ServiceBinderBase, GreeterService).

CallCredentials

Client-side call credentials. Provide authorization with per-call granularity.

CallCredentialsConfiguratorBase

Base class for objects that can consume configuration from CallCredentials objects. Note: experimental API that can change or be removed without any prior notice.

CallInvoker

Abstraction of client-side RPC invocation.

ChannelBase

Base class for gRPC channel. Channels are an abstraction of long-lived connections to remote servers.

ChannelCredentials

Client-side channel credentials. Used for creation of a secure channel.

ChannelCredentialsConfiguratorBase

Base class for objects that can consume configuration from CallCredentials objects. Note: experimental API that can change or be removed without any prior notice.

ClientBase

Base class for client-side stubs.

ClientBase.ClientBaseConfiguration

Represents configuration of ClientBase. The class itself is visible to subclasses, but contents are marked as internal to make the instances opaque. The verbose name of this class was chosen to make name clash in generated code less likely.

ClientBase<T>

Generic base class for client-side stubs.

ContextPropagationOptions

Options for ContextPropagationToken.

ContextPropagationToken

Token for propagating context of server side handlers to child calls. In situations when a backend is making calls to another backend, it makes sense to propagate properties like deadline and cancellation token of the server call to the child call. Underlying gRPC implementation may provide other "opaque" contexts (like tracing context) that are not explicitly accesible via the public C# API, but this token still allows propagating them.

DeserializationContext

Provides access to the payload being deserialized when deserializing messages.

KeyCertificatePair

Key certificate pair (in PEM encoding).

Marshaller<T>

Encapsulates the logic for serializing and deserializing messages.

Marshallers

Utilities for creating marshallers.

Metadata

A collection of metadata entries that can be exchanged during a call. gRPC supports these types of metadata:

  • Request headersare sent by the client at the beginning of a remote call before any request messages are sent.
  • Response headersare sent by the server at the beginning of a remote call handler before any response messages are sent.
  • Response trailersare sent by the server at the end of a remote call along with resulting call status.

Metadata.Entry

Metadata entry

Method<TRequest, TResponse>

A description of a remote method.

RpcException

Thrown when remote procedure call fails. Every RpcException is associated with a resulting Status of the call.

SerializationContext

Provides storage for payload when serializing a message.

ServerCallContext

Context for a server-side call.

ServerServiceDefinition

Stores mapping of methods to server call handlers. Normally, the ServerServiceDefinition objects will be created by the BindService factory method that is part of the autogenerated code for a protocol buffers service definition.

ServerServiceDefinition.Builder

Builder class for ServerServiceDefinition.

ServiceBinderBase

Allows binding server-side method implementations in alternative serving stacks. Instances of this class are usually populated by the BindService method that is part of the autogenerated code for a protocol buffers service definition.