Workflow Engine .NET

Assembly: OptimaJet.Workflow.Api

Interface IWorkflowTenantRegistryLifecycle

OptimaJet.Workflow.Api.IWorkflowTenantRegistryLifecycle

Controls the host-owned lifecycle of the workflow tenant registry.

public interface IWorkflowTenantRegistryLifecycle

Methods

Task StartAsync(IEnumerable<WorkflowTenantCreationOptions> options, CancellationToken cancellationToken = default) #
Starts the tenant registry and registers static tenants from the provided creation options.

Parameters

Name
Type
Description
options
IEnumerable<WorkflowTenantCreationOptions>
The static tenant creation options configured for the host.
cancellationToken
CancellationToken
The cancellation token for the start operation.

Returns

Type
Description
Task
Task StopAsync(CancellationToken cancellationToken) #
Stops the tenant registry and gracefully shuts down registry-owned tenants.

Parameters

Name
Type
Description
cancellationToken
CancellationToken
The cancellation token for the stop operation.

Returns

Type
Description
Task