/// <inheritdoc />
 public void Perform(Action <TenantId, IServiceProvider> callback)
 {
     foreach (var tenant in _allTenants.All.ToArray())
     {
         callback(tenant, _serviceProviders.ForTenant(tenant));
     }
 }
Example #2
0
 /// <inheritdoc />
 public IServiceScope CreateScopeForTenant(TenantId tenant)
 => _providers
 .ForTenant(tenant)
 .GetRequiredService <IServiceScopeFactory>()
 .CreateScope();