Example #1
0
		public QueueBuilder WithExchange(string exchangeName, Action<IExchangeTypeConfiguration> exchangeConfiguration)
		{
			_exchangeName = exchangeName;
			var exchangeInfo = new ExchangeInfo();
			exchangeConfiguration(exchangeInfo);
			_exchangeType = exchangeInfo.ExchangeType;
			return this;
		}
		public IConsumeConfigurationContext WithExchange(string exchangeName,
		                                                 Action<IExchangeConfiguration> exchangeConfiguration)
		{
			ConsumeInfo.ExchangeName = exchangeName;
			var exchangeInfo = new ExchangeInfo();
			exchangeConfiguration(exchangeInfo);
			ConsumeInfo.IsExchangeDurable = exchangeInfo.IsDurable;
			ConsumeInfo.IsExchangeAutoDelete = exchangeInfo.IsAutoDelete;
			ConsumeInfo.ExchangeType = exchangeInfo.ExchangeType;
			return this;
		}