src/NuGetGallery.Services/Configuration/ConfigurationService.cs
/// <summary>
/// Initializes the configuration service and associates a secret injector based on the configured KeyVault
/// settings.
/// </summary>
Initializes the configuration service and associates a secret injector based on the configured KeyVault
settings.
Initializes the configuration service and associates a secret injector based on the configured KeyVault settings .
public static ConfigurationService Initialize()
        {
            var configuration = new ConfigurationService();
            var secretReaderFactory = new SecretReaderFactory(configuration);
            var secretReader = secretReaderFactory.CreateSecretReader();
            var secretInjector = secretReaderFactory.CreateSecretInjector(secretReader);
            configuration.SecretInjector = secretInjector;
            return configuration;
        }
public static ConfigurationService Initialize ( ) { var configuration = new ConfigurationService ( ) ; var secretReaderFactory = new SecretReaderFactory ( configuration ) ; var secretReader = secretReaderFactory . CreateSecretReader ( ) ; var secretInjector = secretReaderFactory . CreateSecretInjector ( secretReader ) ; configuration . SecretInjector = secretInjector ; return configuration ; }
Initializes the configuration service and associates a secret injector based on the configured KeyVault
settings.
Initializes the configuration service and associates a secret injector based on the configured KeyVault settings .