ITenantDistributor
public interface ITenantDistributor : IStashboxContainer, IDependencyRegistrator, IDependencyResolver, IServiceProvider, IAsyncDisposable, IDisposable, IDependencyReMapper, IDependencyCollectionRegistrator, IDecoratorRegistrator, IFuncRegistrator
Represents a tenant distributor that manages tenants in a multi-tenant environment.
void ConfigureTenant(object tenantId, Action<IStashboxContainer> tenantConfig, bool attachTenantToRoot = true)
Adds a tenant with a specified service configuration to the distributor.
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.