private JsonConfigurationProvider GetJsonConfigurationProvider(string connectionString)
        {
            var blobBlock = GetBlobBlockReferenceFromCloud(connectionString);

            FileProvider = new BaConfigFileProvider(blobBlock);
            return(new JsonConfigurationProvider(this));
        }
        public override IConfigurationProvider Build(IConfigurationBuilder builder)
        {
            var environmentString = Environment.GetEnvironmentVariable("BACONFIG_TARGET");

            if (environmentString == null)
            {
                Optional = true;
            }
            else
            {
                Optional = !_required;
                if (!Optional)
                {
                    var blobBlock = GetBlobBlockReferenceFromCloud(environmentString);
                    FileProvider = new BaConfigFileProvider(blobBlock);
                }
            }
            return(new JsonConfigurationProvider(this));
        }