コード例 #1
0
        public BlobStorageConfiguration UsingBlobStorageContainer(Uri containerUri, string sharedAccessSignature)
        {
            if (AzureStorageAccountConnectionString != null)
                throw new InvalidOperationException("You have already configured the Azure large message feature to use a Storage Account Connection String. There is no need to provide a specific Container URI and Shared Access Signature.");

            AzureBlobStorageContainerUri = new AzureBlobStorageContainerUriSetting { Value = containerUri };
            AzureBlobStorageContainerSharedAccessSignature = new AzureBlobStorageContainerSharedAccessSignatureSetting { Value = sharedAccessSignature };
            _storeBuilder = logger => new AzureBlobStorageHttpLargeMessageBodyStore(new AzureBlobStorageHttpClient(new UriFormatter(AzureBlobStorageContainerUri, AzureBlobStorageContainerSharedAccessSignature), logger));
            return this;
        }
コード例 #2
0
        public AzureBlobStorageHttpLargeMessageStorageConfiguration UsingBlobStorageContainer(Uri containerUri, string sharedAccessSignature)
        {
            AzureBlobStorageContainerUri = new AzureBlobStorageContainerUriSetting {
                Value = containerUri
            };
            AzureBlobStorageContainerSharedAccessSignature = new AzureBlobStorageContainerSharedAccessSignatureSetting {
                Value = sharedAccessSignature
            };

            return(this);
        }
コード例 #3
0
        public BlobStorageConfiguration UsingBlobStorageContainer(Uri containerUri, string sharedAccessSignature)
        {
            if (AzureStorageAccountConnectionString != null)
            {
                throw new InvalidOperationException("You have already configured the Azure large message feature to use a Storage Account Connection String. There is no need to provide a specific Container URI and Shared Access Signature.");
            }

            AzureBlobStorageContainerUri = new AzureBlobStorageContainerUriSetting {
                Value = containerUri
            };
            AzureBlobStorageContainerSharedAccessSignature = new AzureBlobStorageContainerSharedAccessSignatureSetting {
                Value = sharedAccessSignature
            };
            _storeBuilder = logger => new AzureBlobStorageHttpLargeMessageBodyStore(new AzureBlobStorageHttpClient(new UriFormatter(AzureBlobStorageContainerUri, AzureBlobStorageContainerSharedAccessSignature), logger));
            return(this);
        }
コード例 #4
0
ファイル: UriFormatter.cs プロジェクト: teyc/Nimbus_v2
 public UriFormatter(AzureBlobStorageContainerUriSetting containerUriSetting, AzureBlobStorageContainerSharedAccessSignatureSetting containerSharedAccessSignatureSetting)
 {
     _containerUriSetting = containerUriSetting;
     _containerSharedAccessSignatureSetting = containerSharedAccessSignatureSetting;
 }
コード例 #5
0
ファイル: UriFormatter.cs プロジェクト: Royal-Jay/Zombus
 public UriFormatter(AzureBlobStorageContainerUriSetting containerUriSetting, AzureBlobStorageContainerSharedAccessSignatureSetting containerSharedAccessSignatureSetting)
 {
     _containerUriSetting = containerUriSetting;
     _containerSharedAccessSignatureSetting = containerSharedAccessSignatureSetting;
 }