Class GrpcClientOptions

Namespace
ProtoTest.Grpc
Assembly
ProtoTest.Grpc.dll

Per-client gRPC choices: metadata added to every call from the client, the hook that builds per-call metadata, and the default deadline. Values layer from ProtoTest:Grpc over the code-based registration.

public sealed class GrpcClientOptions : IProtoConfigurableOptions
Inheritance
GrpcClientOptions
Implements
Inherited Members
Extension Methods

Fields

ConfigurationSectionName

public const string ConfigurationSectionName = "ProtoTest:Grpc"

Field Value

string

Properties

ConfigureMetadata

Builds metadata per call with access to the test context - the hook for token auth.

public Action<ProtoExecutionContext, Metadata>? ConfigureMetadata { get; set; }

Property Value

Action<ProtoExecutionContext, Metadata>

DefaultDeadline

A default deadline applied when a call does not name one.

public TimeSpan? DefaultDeadline { get; set; }

Property Value

TimeSpan?

Metadata

Metadata added to every call from this client, keyed by its metadata name.

public IDictionary<string, string> Metadata { get; set; }

Property Value

IDictionary<string, string>

SensitiveMetadataKeys

Metadata keys whose values are redacted in the trace. Matching is case-insensitive and by substring, so authorization also covers proxy-authorization. Configuration under ProtoTest:Grpc:SensitiveMetadataKeys extends these defaults.

public List<string> SensitiveMetadataKeys { get; set; }

Property Value

List<string>