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); }
public ServiceBusQueueSubscriptionOperator(ILocalSwitchboard switchBoard, string connectionString, string queueName, bool createQueueIfItDoesNotExist, int maxDequeueCount = DefaultDequeueMaxCount) : this(switchBoard, ServiceBusQueuePublishOperator <T> .GetQueue(connectionString, queueName, createQueueIfItDoesNotExist), maxDequeueCount) { }
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) { }