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; }
public AzureBlobStorageHttpLargeMessageStorageConfiguration UsingBlobStorageContainer(Uri containerUri, string sharedAccessSignature) { AzureBlobStorageContainerUri = new AzureBlobStorageContainerUriSetting { Value = containerUri }; AzureBlobStorageContainerSharedAccessSignature = new AzureBlobStorageContainerSharedAccessSignatureSetting { Value = sharedAccessSignature }; return(this); }
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); }
public UriFormatter(AzureBlobStorageContainerUriSetting containerUriSetting, AzureBlobStorageContainerSharedAccessSignatureSetting containerSharedAccessSignatureSetting) { _containerUriSetting = containerUriSetting; _containerSharedAccessSignatureSetting = containerSharedAccessSignatureSetting; }