Class ResultContext

Namespace
REslava.Result
Assembly
REslava.Result.dll

Carries ambient context through a Result pipeline — entity type, runtime identity, correlation, operation name, and tenant. Seeded automatically by Ok/Fail factories and propagated by all pipeline operators (parent-wins).

public sealed record ResultContext : IEquatable<ResultContext>
Inheritance
ResultContext
Implements
Inherited Members
Extension Methods

Fields

Empty

Shared empty singleton — used when no context has been set.

public static readonly ResultContext Empty

Field Value

ResultContext

Properties

CorrelationId

Distributed trace / correlation identifier.

public string? CorrelationId { get; init; }

Property Value

string

Entity

Domain entity type name (e.g. "Order"). Auto-seeded from typeof(T).Name.

public string? Entity { get; init; }

Property Value

string

EntityId

Runtime entity identifier (e.g. order ID, user ID).

public string? EntityId { get; init; }

Property Value

string

OperationName

Name of the business operation being executed (e.g. "PlaceOrder").

public string? OperationName { get; init; }

Property Value

string

TenantId

Tenant identifier for multi-tenant scenarios.

public string? TenantId { get; init; }

Property Value

string