public BlobJsonConfigurationSource(BlobJsonConfigurationOption option)
        {
            Option = option ?? throw new ArgumentNullException(nameof(option));

            var account = BlobJsonConfigurationOption.GetAccount(option.BlobUri);

            BlobAccessor = new BlobAccessor(option.BlobUri, account, option.AccessKey, option.IsPublic);
        }
        public BlobJsonConfigurationSource(BlobJsonConfigurationOption option)
        {
            Option = option ?? throw new ArgumentNullException(nameof(option));

            var account = BlobJsonConfigurationOption.GetAccount(option.BlobUri);

            BlobAccessor = BlobAccessor.Create(option.BlobUri, account, option.SASToken);
        }
コード例 #3
0
        public static IConfigurationBuilder AddBlobJson(this IConfigurationBuilder builder, BlobJsonConfigurationOption option)
        {
            if (builder == null)
            {
                throw new ArgumentNullException(nameof(builder));
            }

            return(builder.Add(new BlobJsonConfigurationSource(option)));
        }