public DbTenantIdentificationService(TenantsDbContext context) { _tenants = new TenantMapping() { Default = "undefined" }; foreach (var t in context.Tenants) { _tenants.Tenants.Add(t.Key, t.Key); } }
public HeaderTenantIdentificationService(TenantMapping tenants) { this._tenants = tenants; }
public HeaderTenantIdentificationService(IConfiguration configuration) { this._tenants = configuration.GetTenantMapping(); }