Interface IWorkflowTenantRegistryLifecycle
OptimaJet.Workflow.Api.IWorkflowTenantRegistryLifecycle
Controls the host-owned lifecycle of the workflow tenant registry.
Namespace: OptimaJet.Workflow.Api
public interface IWorkflowTenantRegistryLifecycleMethods
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
optionsIEnumerable<WorkflowTenantCreationOptions>The static tenant creation options configured for the host.
cancellationTokenCancellationTokenThe cancellation token for the start operation.
Returns
Type
Description
TaskTask StopAsync(CancellationToken cancellationToken) #Stops the tenant registry and gracefully shuts down registry-owned tenants.
Parameters
Name
Type
Description
cancellationTokenCancellationTokenThe cancellation token for the stop operation.
Returns
Type
Description
Task