Interface IWorkflowTenantRegistry
OptimaJet.Workflow.Api.IWorkflowTenantRegistry
Registry of runtime workflow tenants.
Namespace: OptimaJet.Workflow.Api
public interface IWorkflowTenantRegistryMethods
Task<IReadOnlyCollection<IWorkflowTenant>> RegisterTenantsAsync(IEnumerable<WorkflowTenantCreationOptions> options) #Creates, registers, and publishes tenants from the provided creation options.
Parameters
Name
Type
Description
optionsIEnumerable<WorkflowTenantCreationOptions>The options used to create the tenants.
Returns
Type
Description
Task<IWorkflowTenant>The created tenant instances.
Task<IReadOnlyCollection<IWorkflowTenant>> RegisterTenantsAsync(params WorkflowTenantCreationOptions[] options) #Creates, registers, and publishes tenants from the provided creation options.
Parameters
Name
Type
Description
optionsWorkflowTenantCreationOptions[]The options used to create the tenants.
Returns
Type
Description
Task<IWorkflowTenant>The created tenant instances.
Task RegisterTenantsAsync(IEnumerable<IWorkflowTenant> tenants) #Registers already created tenants and publishes a new immutable tenant snapshot.
Parameters
Name
Type
Description
tenantsIEnumerable<IWorkflowTenant>The tenants to register.
Returns
Type
Description
TaskTask RegisterTenantsAsync(params IWorkflowTenant[] tenants) #Registers already created tenants and publishes a new immutable tenant snapshot.
Parameters
Name
Type
Description
tenantsIWorkflowTenant[]The tenants to register.
Returns
Type
Description
TaskTask UnregisterTenantsAsync(IEnumerable<IWorkflowTenant> tenants) #Unregisters tenant instances and publishes a new immutable tenant snapshot.
Parameters
Name
Type
Description
tenantsIEnumerable<IWorkflowTenant>The tenants to unregister.
Returns
Type
Description
TaskTask UnregisterTenantsAsync(params IWorkflowTenant[] tenants) #Unregisters tenant instances and publishes a new immutable tenant snapshot.
Parameters
Name
Type
Description
tenantsIWorkflowTenant[]The tenants to unregister.
Returns
Type
Description
TaskIWorkflowTenantSnapshot GetSnapshot() #Gets an immutable tenant snapshot actual at the moment of the call.
Returns
Type
Description
IWorkflowTenantSnapshotThe immutable tenant snapshot. The caller must dispose it when it is no longer needed.