Table of Contents

Class GrpcMappingContext

Namespace
Excalibur.Dispatch.Transport
Assembly
Excalibur.Dispatch.dll

gRPC mapping context implementation.

public sealed class GrpcMappingContext : IGrpcMappingContext
Inheritance
GrpcMappingContext
Implements
Inherited Members
Extension Methods

Properties

Deadline

Gets or sets the deadline for the call.

public TimeSpan? Deadline { get; set; }

Property Value

TimeSpan?

Headers

Gets all configured headers.

public IReadOnlyDictionary<string, string> Headers { get; }

Property Value

IReadOnlyDictionary<string, string>

MethodName

Gets or sets the service method name.

public string? MethodName { get; set; }

Property Value

string

Methods

ApplyTo(TransportMessageContext)

Applies this configuration to a transport message context.

public void ApplyTo(TransportMessageContext context)

Parameters

context TransportMessageContext

The context to apply configuration to.

SetHeader(string, string)

Sets a custom header on the call.

public void SetHeader(string key, string value)

Parameters

key string

The header key.

value string

The header value.