Click or drag to resize
Grpc.Core Namespace
Main namespace for gRPC C# functionality. Contains concepts representing both client side and server side gRPC logic.
Classes
  ClassDescription
Public classAsyncClientStreamingCallTRequest, TResponse
Return type for client streaming calls.
Public classAsyncDuplexStreamingCallTRequest, TResponse
Return type for bidirectional streaming calls.
Public classAsyncServerStreamingCallTResponse
Return type for server streaming calls.
Public classAsyncUnaryCallTResponse
Return type for single request - single response call.
Public classCalls
Helper methods for generated clients to make RPC calls. Most users will use this class only indirectly and will be making calls using client object generated from protocol buffer definition files.
Public classChannel
Represents a gRPC channel. Channels are an abstraction of long-lived connections to remote servers. More client objects can reuse the same channel. Creating a channel is an expensive operation compared to invoking a remote call so in general you should reuse a single channel for as many calls as possible.
Public classChannelOption
Channel option specified when creating a channel. Corresponds to grpc_channel_args from grpc/grpc.h.
Public classChannelOptions
Defines names of supported channel options.
Public classClientBase
Base class for client-side stubs.
Public classContextPropagationOptions
Public classContextPropagationToken
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. The gRPC native layer provides some other contexts (like tracing context) that are not accessible to explicitly C# layer, but this token still allows propagating them.
Public classCredentials
Client-side credentials. Used for creation of a secure channel.
Public classGrpcEnvironment
Encapsulates initialization and shutdown of gRPC library.
Public classKeyCertificatePair
Key certificate pair (in PEM encoding).
Public classMarshallerT
Encapsulates the logic for serializing and deserializing messages.
Public classMarshallers
Utilities for creating marshallers.
Public classMetadata
A collection of metadata entries that can be exchanged during a call. gRPC supports these types of metadata:
  • Request headers - are sent by the client at the beginning of a remote call before any request messages are sent.
  • Response headers - are sent by the server at the beginning of a remote call handler before any response messages are sent.
  • Response trailers - are sent by the server at the end of a remote call along with resulting call status.
Public classMethodTRequest, TResponse
A description of a remote method.
Public classRpcException
Thrown when remote procedure call fails. Every RpcException is associated with a resulting Status of the call.
Public classServer
gRPC server. A single server can server arbitrary number of services and can listen on more than one ports.
Public classServerServerPortCollection
Collection of server ports.
Public classServerServiceDefinitionCollection
Collection of service definitions.
Public classServerCallContext
Context for a server-side call.
Public classServerCredentials
Server side credentials.
Public classServerPort
A port exposed by a server.
Public classServerServiceDefinition
Mapping of method names 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.
Public classServerServiceDefinitionBuilder
Builder class for ServerServiceDefinition.
Public classSslCredentials
Client-side SSL credentials.
Public classSslServerCredentials
Server-side SSL credentials.
Public classVersionInfo
Provides info about current version of gRPC.
Public classWriteOptions
Options for write operations.
Structures
Interfaces
Delegates
Enumerations
  EnumerationDescription
Public enumerationChannelOptionOptionType
Type of ChannelOption.
Public enumerationChannelState
Connectivity state of a channel. Based on grpc_connectivity_state from grpc/grpc.h
Public enumerationCompressionLevel
Compression level based on grpc_compression_level from grpc/compression.h
Public enumerationMethodType
Method types supported by gRPC.
Public enumerationStatusCode
Result of a remote procedure call. Based on grpc_status_code from grpc/status.h
Public enumerationWriteFlags
Flags for write operations.
See Also

Reference

[Grpc.Core.Channel]
[Grpc.Core.Server]