Class ProtoHttpResponseContext
The per-call state an HTTP-based protocol response carries: the execution context it was made in, the target and operation identity, attachment naming and the parent operation. One record instead of the long parameter lists every response constructor repeated.
public sealed record ProtoHttpResponseContext : IEquatable<ProtoHttpResponseContext>
- Inheritance
-
ProtoHttpResponseContext
- Implements
- Inherited Members
- Extension Methods
Constructors
ProtoHttpResponseContext(ProtoExecutionContext?, string?, string?, ProtoHttpAttachmentOptions?, string?, string?, string?, string?)
The per-call state an HTTP-based protocol response carries: the execution context it was made in, the target and operation identity, attachment naming and the parent operation. One record instead of the long parameter lists every response constructor repeated.
public ProtoHttpResponseContext(ProtoExecutionContext? Execution = null, string? TargetName = null, string? Identifier = null, ProtoHttpAttachmentOptions? AttachmentOptions = null, string? AttachmentPrefix = null, string? RequestTraceId = null, string? Method = null, string? RouteTemplate = null)
Parameters
ExecutionProtoExecutionContextTargetNamestringIdentifierstringAttachmentOptionsProtoHttpAttachmentOptionsAttachmentPrefixstringRequestTraceIdstringMethodstringRouteTemplatestring
Properties
AttachmentOptions
public ProtoHttpAttachmentOptions? AttachmentOptions { get; init; }
Property Value
AttachmentPrefix
public string? AttachmentPrefix { get; init; }
Property Value
Execution
public ProtoExecutionContext? Execution { get; init; }
Property Value
Identifier
public string? Identifier { get; init; }
Property Value
Method
public string? Method { get; init; }
Property Value
RequestTraceId
public string? RequestTraceId { get; init; }
Property Value
RouteTemplate
public string? RouteTemplate { get; init; }
Property Value
TargetName
public string? TargetName { get; init; }