示例#1
0
        public DeliverToServiceBusQueue(string connectionString, string queueName, bool createQueueIfItDoesNotExist = true)
        {
            // handles create if not exists
            var queue = ServiceBusQueuePublishOperator <MsgType> .GetQueue(connectionString, queueName, createQueueIfItDoesNotExist);

            sender = new ServiceBusClient(connectionString).CreateSender(queueName);
        }
示例#2
0
 public ServiceBusQueueSubscriptionOperator(ILocalSwitchboard switchBoard, string connectionString, string queueName, bool createQueueIfItDoesNotExist, int maxDequeueCount = DefaultDequeueMaxCount)
     : this(switchBoard, ServiceBusQueuePublishOperator <T> .GetQueue(connectionString, queueName, createQueueIfItDoesNotExist), maxDequeueCount)
 {
 }
示例#3
0
 public ServiceBusQueueSubscriptionOperator(LocalConcurrencyType concurrencyType, string connectionString, string queueName, bool createQueueIfItDoesNotExist, uint concurrency = DefaultConcurrency, int maxDequeueCount = DefaultDequeueMaxCount)
     : this(new LocalSwitchboard(concurrencyType, concurrency), ServiceBusQueuePublishOperator <T> .GetQueue(connectionString, queueName, createQueueIfItDoesNotExist), maxDequeueCount)
 {
 }