Show / Hide Table of Contents

Class ChannelOptions

Defines names of most commonly used channel options. Other supported options names can be found in grpc_types.h (GRPC_ARG_* definitions)

Inheritance
System.Object
ChannelOptions
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: Grpc.Core
Assembly: Grpc.Core.dll
Syntax
public static class ChannelOptions

Fields

Census

Enable census for tracing and stats collection

Declaration
public const string Census = "grpc.census"
Field Value
Type Description
System.String

DefaultAuthority

Default authority for calls.

Declaration
public const string DefaultAuthority = "grpc.default_authority"
Field Value
Type Description
System.String

Http2InitialSequenceNumber

Initial sequence number for http2 transports

Declaration
public const string Http2InitialSequenceNumber = "grpc.http2.initial_sequence_number"
Field Value
Type Description
System.String

MaxConcurrentStreams

Maximum number of concurrent incoming streams to allow on a http2 connection

Declaration
public const string MaxConcurrentStreams = "grpc.max_concurrent_streams"
Field Value
Type Description
System.String

MaxMessageLength

Obsolete, for backward compatibility only.

Declaration
[Obsolete("Use MaxReceiveMessageLength instead.")]
public const string MaxMessageLength = "grpc.max_receive_message_length"
Field Value
Type Description
System.String

MaxReceiveMessageLength

Maximum message length that the channel can receive

Declaration
public const string MaxReceiveMessageLength = "grpc.max_receive_message_length"
Field Value
Type Description
System.String

MaxSendMessageLength

Maximum message length that the channel can send

Declaration
public const string MaxSendMessageLength = "grpc.max_send_message_length"
Field Value
Type Description
System.String

PrimaryUserAgentString

Primary user agent: goes at the start of the user-agent metadata

Declaration
public const string PrimaryUserAgentString = "grpc.primary_user_agent"
Field Value
Type Description
System.String

SecondaryUserAgentString

Secondary user agent: goes at the end of the user-agent metadata

Declaration
public const string SecondaryUserAgentString = "grpc.secondary_user_agent"
Field Value
Type Description
System.String

SoReuseport

If non-zero, allow the use of SO_REUSEPORT for server if it's available (default 1)

Declaration
public const string SoReuseport = "grpc.so_reuseport"
Field Value
Type Description
System.String

SslTargetNameOverride

Override SSL target check. Only to be used for testing.

Declaration
public const string SslTargetNameOverride = "grpc.ssl_target_name_override"
Field Value
Type Description
System.String
Back to top