public CloudQueueReceiver( ICloudQueuePool pool, IObserver<CloudQueueMessage> observer, ICloudQueueReceiverConfiguration receiverConfiguration, ICloudQueueErrorConfiguration errorConfiguration) { if (pool == null) throw new ArgumentNullException("pool"); if (observer == null) throw new ArgumentNullException("observer"); if (receiverConfiguration == null) throw new ArgumentNullException("receiverConfiguration"); if (errorConfiguration == null) throw new ArgumentNullException("errorConfiguration"); _pool = pool; _observer = observer; _receiverConfiguration = receiverConfiguration; _errorConfiguration = errorConfiguration; _stopSource = new CancellationTokenSource(); }
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; }