Here are the general steps to enable a multi-tenant setup:
Add a reference to the Elsa.Tenants package.
Install and configure the TenantsFeature.
Configure the tenant resolution pipeline
Configure the tenant provider
Configuration
The following is an example of setting up multitenancy using configuration as the tenants provider and a claims tenant resolver that determines the current tenant from the user's tenant ID claim:
Program.cs
services.AddElsa(elsa =>{elsa.UseTenants(tenants => {tenants.ConfigureMultitenancy(options => { // Configure the tenant resolution pipeline.options.TenantResolverPipelineBuilder.Append<ClaimsTenantResolver>(); }); // Install the configuration-based tenanta provider.tenants.UseConfigurationBasedTenantsProvider(options =>configuration.GetSection("Multitenancy").Bind(options));});