@@ -96,6 +96,8 @@ public ConfiguredTaskAwaitable<T>.ConfiguredTaskAwaiter GetAwaiter()
96
96
return _tcsConfiguredTaskAwaitable . GetAwaiter ( ) ;
97
97
}
98
98
99
+ public abstract ProtocolCommandId [ ] HandledProtocolCommandIds { get ; }
100
+
99
101
public async Task HandleCommandAsync ( IncomingCommand cmd )
100
102
{
101
103
try
@@ -203,6 +205,9 @@ public ConnectionSecureOrTuneAsyncRpcContinuation(TimeSpan continuationTimeout,
203
205
{
204
206
}
205
207
208
+ public override ProtocolCommandId [ ] HandledProtocolCommandIds
209
+ => [ ProtocolCommandId . ConnectionSecure , ProtocolCommandId . ConnectionTune ] ;
210
+
206
211
protected override Task DoHandleCommandAsync ( IncomingCommand cmd )
207
212
{
208
213
if ( cmd . CommandId == ProtocolCommandId . ConnectionSecure )
@@ -240,6 +245,9 @@ public SimpleAsyncRpcContinuation(ProtocolCommandId expectedCommandId, TimeSpan
240
245
_expectedCommandId = expectedCommandId ;
241
246
}
242
247
248
+ public override ProtocolCommandId [ ] HandledProtocolCommandIds
249
+ => [ _expectedCommandId ] ;
250
+
243
251
protected override Task DoHandleCommandAsync ( IncomingCommand cmd )
244
252
{
245
253
if ( cmd . CommandId == _expectedCommandId )
@@ -297,6 +305,9 @@ public BasicConsumeAsyncRpcContinuation(IAsyncBasicConsumer consumer, IConsumerD
297
305
_consumerDispatcher = consumerDispatcher ;
298
306
}
299
307
308
+ public override ProtocolCommandId [ ] HandledProtocolCommandIds
309
+ => [ ProtocolCommandId . BasicConsumeOk ] ;
310
+
300
311
protected override async Task DoHandleCommandAsync ( IncomingCommand cmd )
301
312
{
302
313
if ( cmd . CommandId == ProtocolCommandId . BasicConsumeOk )
@@ -326,6 +337,9 @@ public BasicGetAsyncRpcContinuation(Func<ulong, ulong> adjustDeliveryTag,
326
337
_adjustDeliveryTag = adjustDeliveryTag ;
327
338
}
328
339
340
+ public override ProtocolCommandId [ ] HandledProtocolCommandIds
341
+ => [ ProtocolCommandId . BasicGetOk , ProtocolCommandId . BasicGetEmpty ] ;
342
+
329
343
internal DateTime StartTime { get ; } = DateTime . UtcNow ;
330
344
331
345
protected override Task DoHandleCommandAsync ( IncomingCommand cmd )
@@ -441,6 +455,9 @@ public QueueDeclareAsyncRpcContinuation(TimeSpan continuationTimeout, Cancellati
441
455
{
442
456
}
443
457
458
+ public override ProtocolCommandId [ ] HandledProtocolCommandIds
459
+ => [ ProtocolCommandId . QueueDeclareOk ] ;
460
+
444
461
protected override Task DoHandleCommandAsync ( IncomingCommand cmd )
445
462
{
446
463
if ( cmd . CommandId == ProtocolCommandId . QueueDeclareOk )
@@ -481,6 +498,9 @@ public QueueDeleteAsyncRpcContinuation(TimeSpan continuationTimeout, Cancellatio
481
498
{
482
499
}
483
500
501
+ public override ProtocolCommandId [ ] HandledProtocolCommandIds
502
+ => [ ProtocolCommandId . QueueDeleteOk ] ;
503
+
484
504
protected override Task DoHandleCommandAsync ( IncomingCommand cmd )
485
505
{
486
506
if ( cmd . CommandId == ProtocolCommandId . QueueDeleteOk )
@@ -504,6 +524,9 @@ public QueuePurgeAsyncRpcContinuation(TimeSpan continuationTimeout, Cancellation
504
524
{
505
525
}
506
526
527
+ public override ProtocolCommandId [ ] HandledProtocolCommandIds
528
+ => [ ProtocolCommandId . QueuePurgeOk ] ;
529
+
507
530
protected override Task DoHandleCommandAsync ( IncomingCommand cmd )
508
531
{
509
532
if ( cmd . CommandId == ProtocolCommandId . QueuePurgeOk )
0 commit comments