Ejemplo n.º 1
0
 /// <summary>
 /// Add additionnal ConfigureServices for specific tenant.
 /// </summary>
 /// <typeparam name="TTenant"></typeparam>
 /// <param name="configuration">Object represents MultiTenancyConfig.</param>
 /// <param name="action">Action to configure services.</param>
 /// <returns></returns>
 public static MultiTenancyConfig <TTenant> UseConfigureServicesTenant <TTenant>(
     this MultiTenancyConfig <TTenant> configuration, Action <IServiceCollection, TTenant> action)
 {
     return(configuration.Use(action, x => configuration.SetConfigureServicesTenant(action)));
 }
Ejemplo n.º 2
0
 /// <summary>
 ///
 /// </summary>
 /// <typeparam name="TTenant"></typeparam>
 /// <typeparam name="TLogProvider"></typeparam>
 /// <param name="configuration"></param>
 /// <param name="tenant"></param>
 /// <param name="tenantConfiguration"></param>
 /// <param name="provider"></param>
 /// <returns></returns>
 public static MultiTenancyConfig <TTenant> UseLogCustomServicesTenant <TTenant, TLogProvider>(
     this MultiTenancyConfig <TTenant> configuration, TTenant tenant, IConfiguration tenantConfiguration, TLogProvider provider)
     where TLogProvider : ILogProvider
 {
     return(configuration.Use(provider, x => LogProvider.SetCurrentLogProvider(x)));
 }