internal void LegacyAPIShimSetConnectionString(string connectionString) { Guard.AgainstNullAndEmpty(nameof(connectionString), connectionString); queueServiceClientProvider = new QueueServiceClientByConnectionString(connectionString); if (SupportsDelayedDelivery) { blobServiceClientProvider = new BlobServiceClientProvidedByConnectionString(connectionString); cloudTableClientProvider = new CloudTableClientByConnectionString(connectionString); } }
/// <summary> /// For the pub-sub migration tests only /// </summary> internal AzureStorageQueueTransport(string connectionString, bool supportsDelayedDelivery, bool supportsPublishSubscribe) : base(TransportTransactionMode.ReceiveOnly, supportsDelayedDelivery, supportsPublishSubscribe, true) { Guard.AgainstNullAndEmpty(nameof(connectionString), connectionString); queueServiceClientProvider = new QueueServiceClientByConnectionString(connectionString); if (SupportsDelayedDelivery || SupportsPublishSubscribe) { cloudTableClientProvider = new CloudTableClientByConnectionString(connectionString); } if (SupportsDelayedDelivery) { blobServiceClientProvider = new BlobServiceClientProvidedByConnectionString(connectionString); } }