@@ -19,17 +19,17 @@ public AsyncDefaultBasicConsumer()
19
19
}
20
20
21
21
/// <summary>
22
- /// Constructor which sets the Model property to the given value.
22
+ /// Constructor which sets the Channel property to the given value.
23
23
/// </summary>
24
- /// <param name="model ">Common AMQP model .</param>
25
- public AsyncDefaultBasicConsumer ( IModel model )
24
+ /// <param name="channel ">Common AMQP channel .</param>
25
+ public AsyncDefaultBasicConsumer ( IChannel channel )
26
26
{
27
- Model = model ;
27
+ Channel = channel ;
28
28
}
29
29
30
30
/// <summary>
31
31
/// Retrieve the consumer tags this consumer is registered as; to be used when discussing this consumer
32
- /// with the server, for instance with <see cref="IModel .BasicCancel"/>.
32
+ /// with the server, for instance with <see cref="IChannel .BasicCancel"/>.
33
33
/// </summary>
34
34
public string [ ] ConsumerTags
35
35
{
@@ -45,7 +45,7 @@ public string[] ConsumerTags
45
45
public bool IsRunning { get ; protected set ; }
46
46
47
47
/// <summary>
48
- /// If our <see cref="IModel "/> shuts down, this property will contain a description of the reason for the
48
+ /// If our <see cref="IChannel "/> shuts down, this property will contain a description of the reason for the
49
49
/// shutdown. Otherwise it will contain null. See <see cref="ShutdownEventArgs"/>.
50
50
/// </summary>
51
51
public ShutdownEventArgs ShutdownReason { get ; protected set ; }
@@ -61,10 +61,10 @@ public event AsyncEventHandler<ConsumerEventArgs> ConsumerCancelled
61
61
private AsyncEventingWrapper < ConsumerEventArgs > _consumerCancelledWrapper ;
62
62
63
63
/// <summary>
64
- /// Retrieve the <see cref="IModel "/> this consumer is associated with,
64
+ /// Retrieve the <see cref="IChannel "/> this consumer is associated with,
65
65
/// for use in acknowledging received messages, for instance.
66
66
/// </summary>
67
- public IModel Model { get ; set ; }
67
+ public IChannel Channel { get ; set ; }
68
68
69
69
/// <summary>
70
70
/// Called when the consumer is cancelled for reasons other than by a basicCancel:
@@ -101,7 +101,7 @@ public virtual Task HandleBasicConsumeOk(string consumerTag)
101
101
/// Called each time a message is delivered for this consumer.
102
102
/// </summary>
103
103
/// <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 .BasicAck"/>
105
105
/// if consuming in automatic acknowledgement mode.
106
106
/// Subclasses must copy or fully use delivery body before returning.
107
107
/// Accessing the body at a later point is unsafe as its memory can
@@ -120,11 +120,11 @@ public virtual Task HandleBasicDeliver(string consumerTag,
120
120
}
121
121
122
122
/// <summary>
123
- /// Called when the model (channel) this consumer was registered on terminates.
123
+ /// Called when the channel (channel) this consumer was registered on terminates.
124
124
/// </summary>
125
- /// <param name="model ">A channel this consumer was registered on.</param>
125
+ /// <param name="channel ">A channel this consumer was registered on.</param>
126
126
/// <param name="reason">Shutdown context.</param>
127
- public virtual Task HandleModelShutdown ( object model , ShutdownEventArgs reason )
127
+ public virtual Task HandleChannelShutdown ( object channel , ShutdownEventArgs reason )
128
128
{
129
129
ShutdownReason = reason ;
130
130
return OnCancel ( _consumerTags . ToArray ( ) ) ;
@@ -170,7 +170,7 @@ void IBasicConsumer.HandleBasicDeliver(string consumerTag, ulong deliveryTag, bo
170
170
throw new InvalidOperationException ( "Should never be called. Enable 'DispatchConsumersAsync'." ) ;
171
171
}
172
172
173
- void IBasicConsumer . HandleModelShutdown ( object model , ShutdownEventArgs reason )
173
+ void IBasicConsumer . HandleChannelShutdown ( object channel , ShutdownEventArgs reason )
174
174
{
175
175
throw new InvalidOperationException ( "Should never be called. Enable 'DispatchConsumersAsync'." ) ;
176
176
}
0 commit comments