Stashbox by Peter Csajtai

<PackageReference Include="Stashbox" Version="5.7.0-preview-775" />

 ITenantDistributor

Represents a tenant distributor that manages tenants in a multi-tenant environment.

The root container.

void ConfigureTenant(object tenantId, Action<IStashboxContainer> tenantConfig)

Adds a tenant with a specified service configuration to the distributor.

IDependencyResolver GetTenant(object tenantId)

Gets a pre-configured IDependencyResolver from the distributor which represents a tenant identified by the given id. When the requested tenant doesn't exist a null value will be returned.