コード例 #1
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;
 }
コード例 #2
0
 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();
 }