コード例 #1
0
        protected void UpdateInfo(IDictionary <string, string> reservedNamesMapping)
        {
            _replyQueueName = new AmqpQueueInfo {
                Name = reservedNamesMapping[_replyQueueName.Name]
            };

            _operational = true;
        }
コード例 #2
0
        internal async Task Setup()
        {
            _replyQueueName = await _channel.QueueDeclare("",
                                                          false, false, exclusive : true, autoDelete : true,
                                                          waitConfirmation : true, arguments : null);

            _subscription = await _channel.BasicConsume(_mode, OnReplyReceived, _replyQueueName.Name,
                                                        consumerTag : "abc" + new Random().Next(100000),
                                                        withoutAcks : true, exclusive : true, arguments : null, waitConfirmation : true);
        }
コード例 #3
0
		internal async Task Setup()
		{
			_replyQueueName = await _channel.QueueDeclare("", 
				false, false, exclusive: true, autoDelete: true, 
				waitConfirmation: true, arguments: null);

			_subscription = await _channel.BasicConsume(_mode, OnReplyReceived, _replyQueueName.Name, 
				consumerTag: "abc" + new Random().Next(100000), 
				withoutAcks: true, exclusive: true, arguments: null, waitConfirmation: true);
		}
コード例 #4
0
        protected async Task Setup()
        {
            _replyQueueName = await _channel.QueueDeclare("",             // temp
                                                          false, false, exclusive : true, autoDelete : true,
                                                          waitConfirmation : true, arguments : null).ConfigureAwait(false);

            _subscription = await _channel.BasicConsume(_mode, OnReplyReceived, _replyQueueName.Name,
                                                        consumerTag : "",
                                                        withoutAcks : true, exclusive : true, arguments : null, waitConfirmation : true).ConfigureAwait(false);
        }