コード例 #1
0
 internal ServiceBusQueueBaseOperator(ILocalSwitchboard switchBoard, ServiceBusQueue queue, int maxDequeueCount)
     : this(queue, true)
 {
     this.Switchboards.Add(switchBoard);
     switchBoard.Operator = this;
     this.maxDequeueCount = maxDequeueCount;
 }
コード例 #2
0
        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
        }
コード例 #3
0
 private ServiceBusQueueDeadLetterSubscriptionOperator(ILocalSwitchboard switchBoard, ServiceBusQueue queue, int maxDequeueCount)
     : base(switchBoard, queue, maxDequeueCount)
 {
 }
コード例 #4
0
 internal ServiceBusQueueBaseOperator(ServiceBusQueue queue)
     : this(queue, false)
 {
 }