source/R5T.D0062.Chamavia/Code/Extensions/IServiceCollectionExtensions.cs
/// <summary>
/// Adds the <see cref="EnvironmentNameProvider"/> implementation of <see cref="IEnvironmentNameProvider"/> as a <see cref="ServiceLifetime.Singleton"/>.
/// </summary>
Adds the  implementation of  as a .
Adds the implementation of as a .
public static EnvironmentNameProviderAggregation01 AddEnvironmentNameProviderAction(this IServiceCollection services,
            IServiceAction<IConfiguration> configurationAction,
            IServiceAction<IDefaultEnvironmentNameProvider> defaultEnvironmentNameProviderAction)
        {
            var environmentNameConfigurationKeyProviderAction = services.AddEnvironmentNameConfigurationKeyProviderAction();
            var environmentNameProviderAction = services.AddEnvironmentNameProviderAction(
                configurationAction,
                defaultEnvironmentNameProviderAction,
                environmentNameConfigurationKeyProviderAction);
            return new EnvironmentNameProviderAggregation01
            {
                EnvironmentNameConfigurationKeyProviderAction = environmentNameConfigurationKeyProviderAction,
                EnvironmentNameProviderAction = environmentNameProviderAction
            };
        }
public static EnvironmentNameProviderAggregation01 AddEnvironmentNameProviderAction ( this IServiceCollection services , IServiceAction < IConfiguration > configurationAction , IServiceAction < IDefaultEnvironmentNameProvider > defaultEnvironmentNameProviderAction ) { var environmentNameConfigurationKeyProviderAction = services . AddEnvironmentNameConfigurationKeyProviderAction ( ) ; var environmentNameProviderAction = services . AddEnvironmentNameProviderAction ( configurationAction , defaultEnvironmentNameProviderAction , environmentNameConfigurationKeyProviderAction ) ; return new EnvironmentNameProviderAggregation01 { EnvironmentNameConfigurationKeyProviderAction = environmentNameConfigurationKeyProviderAction , EnvironmentNameProviderAction = environmentNameProviderAction } ; }
Adds the  implementation of  as a .
Adds the implementation of as a .
// Level 0. // Level 1.
IServiceCollection
this
configurationAction
IServiceAction<IConfiguration>
defaultEnvironmentNameProviderAction
IServiceAction<IDefaultEnvironmentNameProvider>