Interface IExecutionContext
- Namespace
- FlowOrchestrator.Core.Execution
- Assembly
- FlowOrchestrator.Core.dll
Carries the ambient state for a single flow run, shared across all steps in that run.
Populated once by TriggerAsync and propagated via IExecutionContextAccessor.
public interface IExecutionContext
- Extension Methods
Properties
JobId
Runtime-specific job or message identifier for the current execution unit (Hangfire job ID, queue message ID, etc.). Set by the runtime adapter before invoking the engine. Stored on the run and step records for correlation with the runtime's own dashboard.
string? JobId { get; set; }
Property Value
PrincipalId
Identity of the caller that triggered the run, or null if anonymous. Sourced from the authentication principal at trigger time.
string? PrincipalId { get; set; }
Property Value
RunId
Unique identifier for this flow run, generated at trigger time.
Guid RunId { get; set; }
Property Value
TriggerData
Deserialized body of the trigger payload (e.g. the webhook request body or manual trigger data).
Available to steps via @triggerBody() expressions.
object? TriggerData { get; set; }
Property Value
TriggerHeaders
HTTP headers from the inbound trigger request, or null for non-HTTP triggers.
Available to steps via @triggerHeaders() expressions.
IReadOnlyDictionary<string, string>? TriggerHeaders { get; set; }