Interface IOperationContext
OptimaJet.Workflow.Api.Configuration.IOperationContext
Provides the current HTTP request to operation callbacks.
Namespace: OptimaJet.Workflow.Api.Configuration
public interface IOperationContextType Hierarchy
- IOperationContext Current type
- Derived interfaces
Properties
string OperationId { get; } #Gets the permanent operation ID.
HttpContext HttpContext { get; } #Gets the current HTTP context.
ClaimsPrincipal User { get; } #Gets the current request's principal.
IServiceProvider Services { get; } #Gets the current request's service scope.
CancellationToken CancellationToken { get; } #Gets the request-aborted token. Request cancellation is never converted to an exception fallback.
string? TenantId { get; } #Gets the normalized tenant ID captured from the request header or the configured default when this context was created.
Remarks
Null represents an absent ID or the single-tenant ID. The value is not validated and does not change during callbacks. Capturing it does not resolve a tenant or runtime; existing tenant validation still applies when the operation requires it.
Remarks
Contexts belong to one request. Resolve scoped services through IOperationContext.Services and share callback data through HttpContext.Items.