Assembly: OptimaJet.Workflow.Api

Interface IWorkflowTenantLocator

OptimaJet.Workflow.Api.IWorkflowTenantLocator

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 using the tenant header, workflowApiTenantId query parameter, or default tenant id.

Returns

Type
Description
String
The tenant id.

Exceptions

Type
Description
AmbiguousWorkflowTenantIdException
The tenant header and query parameter differ.

string GetWorkflowTenantId(HttpContext httpContext) #

Gets the workflow tenant id for the supplied HTTP context.

Parameters

Name
Type
Description
httpContext
HttpContext
The HTTP context associated with the request or connection.

Returns

Type
Description
String
The tenant id.

Exceptions

Type
Description
AmbiguousWorkflowTenantIdException
The tenant header and query parameter differ.

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.