Esempio n. 1
0
 public static IConfigurationBuilder AddEnvironmentVariables(this IConfigurationBuilder builder,
                                                             string providerId,
                                                             EnvironmentVariablesConfigurationOptions options)
 {
     builder.Add(providerId, new EnvironmentVariablesConfigurationSource(options));
     return(builder);
 }
Esempio n. 2
0
 public EnvironmentVariablesConfigurationProvider(string id, EnvironmentVariablesConfigurationOptions options) : base(id)
 {
     _environmentVariableTarget           = options.EnvironmentVariableTarget;
     _environmentVariableNameToKeyMapping = options.EnvironmentVariableToKeyMap ?? new Dictionary <string, string>();
     _environmentVariableProvider         = options.EnvironmentVariableProvider;
 }
Esempio n. 3
0
 public EnvironmentVariablesConfigurationProvider(string id, EnvironmentVariablesConfigurationOptions options) : base(id)
 {
     _environmentVariableTarget   = options.EnvironmentVariableTarget;
     _environmentVariableParsers  = options.EnvironmentVariableParsers ?? new Dictionary <string, EnvironmentVariableConfigurationParser>();
     _environmentVariableProvider = options.EnvironmentVariableProvider;
 }
 public EnvironmentVariablesConfigurationSource(EnvironmentVariablesConfigurationOptions options)
 {
     _options = options;
 }