# Interface IWorkflowTenantLocator OptimaJet.Workflow.Api.IWorkflowTenantLocator Namespace: [OptimaJet.Workflow.Api](https://api.workflowengine.io/web-api/OptimaJet.Workflow.Api/) ```csharp public interface IWorkflowTenantLocator ``` ## Methods `IWorkflowTenantSnapshot GetHttpContextWorkflowTenantSnapshot()` Gets the workflow tenant snapshot from the current HTTP context. ### Returns | Type | Description | | --- | --- | | `IWorkflowTenantSnapshot` | The workflow tenant snapshot. | `string GetHttpContextWorkflowTenantId()` Gets the workflow tenant id from the current HTTP context based on the provided header or default tenant id. ### Returns | Type | Description | | --- | --- | | `String` | The tenant id. | `IWorkflowTenant GetHttpContextWorkflowTenant()` Gets the workflow tenant instance from the current HTTP context. ### Returns | Type | Description | | --- | --- | | `IWorkflowTenant` | \>The tenant instance. | `WorkflowRuntime GetHttpContextWorkflowRuntime()` Gets the workflow runtime instance for the workflow tenant identified in the current HTTP context. ### Returns | Type | Description | | --- | --- | | `WorkflowRuntime` | \>The workflow runtime instance. | [Previous IWorkflowTenantFactory](https://api.workflowengine.io/web-api/OptimaJet.Workflow.Api/IWorkflowTenantFactory/) [Next IWorkflowTenantRegistry](https://api.workflowengine.io/web-api/OptimaJet.Workflow.Api/IWorkflowTenantRegistry/)