ITenantDistributor
Represents a tenant distributor that manages tenants in a multi-tenant environment.
using System;
namespace Stashbox.Multitenant
{
public interface ITenantDistributor : IAsyncDisposable, IDisposable
{
IStashboxContainer RootContainer { get; }
void ConfigureTenant(object tenantId, Func<IStashboxContainer, IDisposable> tenantConfig);
IDependencyResolver GetTenant(object tenantId);
void Validate();
}
}