Class GrpcMappingContext
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
Headers
Gets all configured headers.
public IReadOnlyDictionary<string, string> Headers { get; }
Property Value
MethodName
Gets or sets the service method name.
public string? MethodName { get; set; }
Property Value
Methods
ApplyTo(TransportMessageContext)
Applies this configuration to a transport message context.
public void ApplyTo(TransportMessageContext context)
Parameters
contextTransportMessageContextThe context to apply configuration to.
SetHeader(string, string)
Sets a custom header on the call.
public void SetHeader(string key, string value)