Example #1
0
 public DockerConfigProvider(DockerConfigSource source)
 {
     if (source == null)
     {
         throw new ArgumentNullException(nameof(source));
     }
     Source = source;
 }
        public static IConfigurationBuilder AddDockerSecrets(this IConfigurationBuilder builder, bool optional, bool reloadOnChange)
        {
            var source = new DockerConfigSource
            {
                Optional       = optional,
                ReloadOnChange = reloadOnChange
            };

            builder.Add(source);
            return(builder);
        }