コード例 #1
0
 /// <summary>
 /// Creates the input channel.
 /// </summary>
 /// <param name="channelName">Name of the channel.</param>
 /// <returns>IAmAnInputChannel.</returns>
 public IAmAnInputChannel CreateInputChannel(string channelName, string routingKey)
 {
     return(new InputChannel(channelName, routingKey, _messageConsumerFactory.Create()));
 }
コード例 #2
0
 /// <summary>
 /// Creates the input channel.
 /// </summary>
 /// <param name="channelName">Name of the channel.</param>
 /// <param name="routingKey">The routing key.</param>
 /// <param name="isDurable"></param>
 /// <returns>IAmAnInputChannel.</returns>
 public IAmAChannel CreateInputChannel(string channelName, string routingKey, bool isDurable = false)
 {
     return(new Channel(channelName, _messageConsumerFactory.Create(channelName, routingKey, isDurable)));
 }