Class ResultContext
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
Properties
CorrelationId
Distributed trace / correlation identifier.
public string? CorrelationId { get; init; }
Property Value
Entity
Domain entity type name (e.g. "Order"). Auto-seeded from typeof(T).Name.
public string? Entity { get; init; }
Property Value
EntityId
Runtime entity identifier (e.g. order ID, user ID).
public string? EntityId { get; init; }
Property Value
OperationName
Name of the business operation being executed (e.g. "PlaceOrder").
public string? OperationName { get; init; }
Property Value
TenantId
Tenant identifier for multi-tenant scenarios.
public string? TenantId { get; init; }