22using System . Collections . Generic ;
33using System . Linq ;
44using System . Threading . Tasks ;
5-
5+ using RabbitMQ . Client . client . impl . Channel ;
66using RabbitMQ . Client . Events ;
77
88namespace RabbitMQ . Client
@@ -12,29 +12,29 @@ public class AsyncDefaultBasicConsumer : IBasicConsumer, IAsyncBasicConsumer
1212 private readonly HashSet < string > _consumerTags = new HashSet < string > ( ) ;
1313
1414 /// <summary>
15- /// Creates a new instance of an <see cref="DefaultBasicConsumer "/>.
15+ /// Creates a new instance of an <see cref="AsyncDefaultBasicConsumer "/>.
1616 /// </summary>
1717 public AsyncDefaultBasicConsumer ( )
1818 {
1919 ShutdownReason = null ;
20- Model = null ;
20+ Channel = null ;
2121 IsRunning = false ;
2222 }
2323
2424 /// <summary>
25- /// Constructor which sets the Model property to the given value.
25+ /// Constructor which sets the <see cref="Channel"/> property to the given value.
2626 /// </summary>
27- /// <param name="model">Common AMQP model .</param>
28- public AsyncDefaultBasicConsumer ( IModel model )
27+ /// <param name="channel">The channel .</param>
28+ public AsyncDefaultBasicConsumer ( IChannel channel )
2929 {
3030 ShutdownReason = null ;
3131 IsRunning = false ;
32- Model = model ;
32+ Channel = channel ;
3333 }
3434
3535 /// <summary>
3636 /// Retrieve the consumer tags this consumer is registered as; to be used when discussing this consumer
37- /// with the server, for instance with <see cref="IModel.BasicCancel "/>.
37+ /// with the server, for instance with <see cref="IChannel.CancelConsumerAsync "/>.
3838 /// </summary>
3939 public string [ ] ConsumerTags
4040 {
@@ -50,7 +50,7 @@ public string[] ConsumerTags
5050 public bool IsRunning { get ; protected set ; }
5151
5252 /// <summary>
53- /// If our <see cref="IModel "/> shuts down, this property will contain a description of the reason for the
53+ /// If our <see cref="IChannel "/> shuts down, this property will contain a description of the reason for the
5454 /// shutdown. Otherwise it will contain null. See <see cref="ShutdownEventArgs"/>.
5555 /// </summary>
5656 public ShutdownEventArgs ShutdownReason { get ; protected set ; }
@@ -61,10 +61,10 @@ public string[] ConsumerTags
6161 public event AsyncEventHandler < ConsumerEventArgs > ConsumerCancelled ;
6262
6363 /// <summary>
64- /// Retrieve the <see cref="IModel "/> this consumer is associated with,
64+ /// Retrieve the <see cref="IChannel "/> this consumer is associated with,
6565 /// for use in acknowledging received messages, for instance.
6666 /// </summary>
67- public IModel Model { get ; set ; }
67+ public IChannel Channel { get ; set ; }
6868
6969 /// <summary>
7070 /// Called when the consumer is cancelled for reasons other than by a basicCancel:
@@ -101,7 +101,7 @@ public virtual Task HandleBasicConsumeOk(string consumerTag)
101101 /// Called each time a message is delivered for this consumer.
102102 /// </summary>
103103 /// <remarks>
104- /// This is a no-op implementation. It will not acknowledge deliveries via <see cref="IModel.BasicAck "/>
104+ /// This is a no-op implementation. It will not acknowledge deliveries via <see cref="IChannel.AckMessageAsync "/>
105105 /// if consuming in automatic acknowledgement mode.
106106 /// Subclasses must copy or fully use delivery body before returning.
107107 /// Accessing the body at a later point is unsafe as its memory can
@@ -120,7 +120,7 @@ public virtual Task HandleBasicDeliver(string consumerTag,
120120 }
121121
122122 /// <summary>
123- /// Called when the model ( channel) this consumer was registered on terminates.
123+ /// Called when the channel this consumer was registered on terminates.
124124 /// </summary>
125125 /// <param name="model">A channel this consumer was registered on.</param>
126126 /// <param name="reason">Shutdown context.</param>
0 commit comments