internal ServiceBusQueueBaseOperator(ILocalSwitchboard switchBoard, ServiceBusQueue queue, int maxDequeueCount) : this(queue, true) { this.Switchboards.Add(switchBoard); switchBoard.Operator = this; this.maxDequeueCount = maxDequeueCount; }
private ServiceBusQueueBaseOperator(ServiceBusQueue queue, bool recievingOnly) { this.queue = queue; this.recievingOnly = recievingOnly; if (recievingOnly) { if (string.IsNullOrEmpty(queue.Subscription)) { reciever = queue.CreateReceiver(queue.QueueName, new ServiceBusReceiverOptions() { ReceiveMode = queue.ReceiveMode, SubQueue = queue.SubQueue }); } else { reciever = queue.CreateReceiver(queue.TopicName, queue.Subscription, new ServiceBusReceiverOptions() { ReceiveMode = queue.ReceiveMode, SubQueue = queue.SubQueue }); } } else { if (string.IsNullOrEmpty(queue.TopicName)) { sender = queue.CreateSender(queue.QueueName); } else { sender = queue.CreateSender(queue.TopicName); } } //var processor = queue.CreateSessionProcessor(queue.QueueName, new ServiceBusSessionProcessorOptions() { ReceiveMode = queue.ReceiveMode }); //processor }
private ServiceBusQueueDeadLetterSubscriptionOperator(ILocalSwitchboard switchBoard, ServiceBusQueue queue, int maxDequeueCount) : base(switchBoard, queue, maxDequeueCount) { }
internal ServiceBusQueueBaseOperator(ServiceBusQueue queue) : this(queue, false) { }