Workflow Engine .NET

Assembly: OptimaJet.Workflow.Api

Class WorkflowTenantLocator

OptimaJet.Workflow.Api.Services.WorkflowTenantLocator

public class WorkflowTenantLocator : IWorkflowTenantLocator

Inheritance

  • Object

Implemented Interfaces

Constructors

public WorkflowTenantLocator(IServiceProvider services) #

Parameters

Name
Type
Description
services
IServiceProvider

Methods

public IWorkflowTenantSnapshot GetHttpContextWorkflowTenantSnapshot() #
Gets the workflow tenant snapshot from the current HTTP context.

Returns

Type
Description
IWorkflowTenantSnapshot
The workflow tenant snapshot.
public 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.
public IWorkflowTenant GetHttpContextWorkflowTenant() #
Gets the workflow tenant instance from the current HTTP context.

Returns

Type
Description
IWorkflowTenant
>The tenant instance.
public 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.