public static IConfigurationBuilder AddEncryptedJsonFile(this IConfigurationBuilder builder, string path,
                                                                 bool optional,
                                                                 bool reloadOnChange)
        {
            if (builder == null)
            {
                throw new ArgumentNullException(nameof(builder));
            }
            if (string.IsNullOrEmpty(path))
            {
                throw new ArgumentException("File path must be a non-empty string.");
            }

            var source = new EncryptedJsonConfigurationSource
            {
                FileProvider   = null,
                Path           = path,
                Optional       = optional,
                ReloadOnChange = reloadOnChange
            };

            source.ResolveFileProvider();
            builder.Add(source);
            return(builder);
        }
 public EncryptedJsonConfigurationProvider(EncryptedJsonConfigurationSource source) : base(source)
 {
 }