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 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(); }