public ReceiveContextSender(IReceiveContext context, ISendContextSender innerSender, Route[] routes) { if (context == null) throw new ArgumentNullException("context"); if (innerSender == null) throw new ArgumentNullException("innerSender"); if (routes == null) throw new ArgumentNullException("routes"); _context = context; _innerSender = innerSender; _routes = routes; }
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; }
public bool Equals(Route other) { if (ReferenceEquals(null, other)) return false; if (ReferenceEquals(this, other)) return true; return other._message == _message && Equals(other._queueName, _queueName); }