# Interface IOperationContext OptimaJet.Workflow.Api.Configuration.IOperationContext Provides the current HTTP request to operation callbacks. Namespace: [OptimaJet.Workflow.Api.Configuration](https://api.workflowengine.io/web-api/OptimaJet.Workflow.Api.Configuration/) ```csharp public interface IOperationContext ``` ## Type Hierarchy - IOperationContext Current type - Derived interfaces - [IOperationContext](https://api.workflowengine.io/web-api/OptimaJet.Workflow.Api.Configuration/IOperationContext-TInput/) ## 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](https://api.workflowengine.io/web-api/OptimaJet.Workflow.Api.Configuration/IOperationContext/) and share callback data through HttpContext.Items. [Previous IOperationBuilder](https://api.workflowengine.io/web-api/OptimaJet.Workflow.Api.Configuration/IOperationBuilder-TInput-TSuccess/) [Next IOperationContext](https://api.workflowengine.io/web-api/OptimaJet.Workflow.Api.Configuration/IOperationContext-TInput/)