Class ProtoHttpResponseContext

Namespace
ProtoTest.Http
Assembly
ProtoTest.Http.dll

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

Execution ProtoExecutionContext
TargetName string
Identifier string
AttachmentOptions ProtoHttpAttachmentOptions
AttachmentPrefix string
RequestTraceId string
Method string
RouteTemplate string

Properties

AttachmentOptions

public ProtoHttpAttachmentOptions? AttachmentOptions { get; init; }

Property Value

ProtoHttpAttachmentOptions

AttachmentPrefix

public string? AttachmentPrefix { get; init; }

Property Value

string

Execution

public ProtoExecutionContext? Execution { get; init; }

Property Value

ProtoExecutionContext

Identifier

public string? Identifier { get; init; }

Property Value

string

Method

public string? Method { get; init; }

Property Value

string

RequestTraceId

public string? RequestTraceId { get; init; }

Property Value

string

RouteTemplate

public string? RouteTemplate { get; init; }

Property Value

string

TargetName

public string? TargetName { get; init; }

Property Value

string