public CloudQueuePublisherBusConfigurationBuilder()
 {
     _senderConfiguration = null;
     _serializer = null;
     _storageAccount = null;
     _subscriptions = new HashSet<Subscription>();
 }
예제 #2
0
 public CloudQueueSender(ICloudQueuePool pool, ICloudQueueSenderConfiguration configuration)
 {
     if (pool == null) throw new ArgumentNullException("pool");
     if (configuration == null) throw new ArgumentNullException("configuration");
     _pool = pool;
     _configuration = configuration;
 }
 public ICloudQueuePublisherBusConfigurationBuilder PublishFrom(string queueName, Action<ICloudQueueSenderConfigurationBuilder> configure)
 {
     if (queueName == null) throw new ArgumentNullException("address");
     if (configure == null) throw new ArgumentNullException("configure");
     var builder = new CloudQueueSenderConfigurationBuilder(queueName);
     configure(builder);
     _senderConfiguration = builder.Build();
     return this;
 }
 public CloudQueuePublisherBusConfiguration(CloudStorageAccount storageAccount, JsonSerializer serializer, Subscription[] subscriptions, ICloudQueueSenderConfiguration senderConfiguration, string overflowBlobContainerName)
 {
     if (storageAccount == null) throw new ArgumentNullException("storageAccount");
     if (serializer == null) throw new ArgumentNullException("serializer");
     if (subscriptions == null) throw new ArgumentNullException("subscriptions");
     if (senderConfiguration == null) throw new ArgumentNullException("senderConfiguration");
     if (overflowBlobContainerName == null) throw new ArgumentNullException("overflowBlobContainerName");
     StorageAccount = storageAccount;
     Serializer = serializer;
     Subscriptions = subscriptions;
     SenderConfiguration = senderConfiguration;
     OverflowBlobContainerName = overflowBlobContainerName;
 }
 public CloudQueueSendOnlyBusConfiguration(CloudStorageAccount storageAccount, JsonSerializer serializer, ICloudQueueSenderConfiguration senderConfiguration, Route[] routes, string overflowBlobContainerName)
 {
     if (storageAccount == null) throw new ArgumentNullException("storageAccount");
     if (serializer == null) throw new ArgumentNullException("serializer");
     if (senderConfiguration == null) throw new ArgumentNullException("senderConfiguration");
     if (routes == null) throw new ArgumentNullException("routes");
     if (overflowBlobContainerName == null) throw new ArgumentNullException("overflowBlobContainerName");
     StorageAccount = storageAccount;
     Serializer = serializer;
     SenderConfiguration = senderConfiguration;
     Routes = routes;
     OverflowBlobContainerName = overflowBlobContainerName;
 }
 public CloudQueueServerBusConfiguration(CloudStorageAccount storageAccount, JsonSerializer serializer, IObserver<IReceiveContext> observer, ICloudQueueReceiverConfiguration receiverConfiguration, Type[] messages, ICloudQueueSenderConfiguration senderConfiguration, Route[] routes, ICloudQueueErrorConfiguration errorConfiguration, string overflowBlobContainerName)
 {
     if (storageAccount == null) throw new ArgumentNullException("storageAccount");
     if (serializer == null) throw new ArgumentNullException("serializer");
     if (observer == null) throw new ArgumentNullException("observer");
     if (receiverConfiguration == null) throw new ArgumentNullException("receiverConfiguration");
     if (messages == null) throw new ArgumentNullException("messages");
     if (senderConfiguration == null) throw new ArgumentNullException("senderConfiguration");
     if (routes == null) throw new ArgumentNullException("routes");
     if (errorConfiguration == null) throw new ArgumentNullException("errorConfiguration");
     if (overflowBlobContainerName == null) throw new ArgumentNullException("overflowBlobContainerName");
     StorageAccount = storageAccount;
     Serializer = serializer;
     Observer = observer;
     ReceiverConfiguration = receiverConfiguration;
     Messages = messages;
     SenderConfiguration = senderConfiguration;
     Routes = routes;
     ErrorConfiguration = errorConfiguration;
     OverflowBlobContainerName = overflowBlobContainerName;
 }