@@ -96,6 +96,8 @@ public ConfiguredTaskAwaitable<T>.ConfiguredTaskAwaiter GetAwaiter()
9696 return _tcsConfiguredTaskAwaitable . GetAwaiter ( ) ;
9797 }
9898
99+ public abstract ProtocolCommandId [ ] HandledProtocolCommandIds { get ; }
100+
99101 public async Task HandleCommandAsync ( IncomingCommand cmd )
100102 {
101103 try
@@ -203,6 +205,9 @@ public ConnectionSecureOrTuneAsyncRpcContinuation(TimeSpan continuationTimeout,
203205 {
204206 }
205207
208+ public override ProtocolCommandId [ ] HandledProtocolCommandIds
209+ => [ ProtocolCommandId . ConnectionSecure , ProtocolCommandId . ConnectionTune ] ;
210+
206211 protected override Task DoHandleCommandAsync ( IncomingCommand cmd )
207212 {
208213 if ( cmd . CommandId == ProtocolCommandId . ConnectionSecure )
@@ -240,6 +245,9 @@ public SimpleAsyncRpcContinuation(ProtocolCommandId expectedCommandId, TimeSpan
240245 _expectedCommandId = expectedCommandId ;
241246 }
242247
248+ public override ProtocolCommandId [ ] HandledProtocolCommandIds
249+ => [ _expectedCommandId ] ;
250+
243251 protected override Task DoHandleCommandAsync ( IncomingCommand cmd )
244252 {
245253 if ( cmd . CommandId == _expectedCommandId )
@@ -297,6 +305,9 @@ public BasicConsumeAsyncRpcContinuation(IAsyncBasicConsumer consumer, IConsumerD
297305 _consumerDispatcher = consumerDispatcher ;
298306 }
299307
308+ public override ProtocolCommandId [ ] HandledProtocolCommandIds
309+ => [ ProtocolCommandId . BasicConsumeOk ] ;
310+
300311 protected override async Task DoHandleCommandAsync ( IncomingCommand cmd )
301312 {
302313 if ( cmd . CommandId == ProtocolCommandId . BasicConsumeOk )
@@ -326,6 +337,9 @@ public BasicGetAsyncRpcContinuation(Func<ulong, ulong> adjustDeliveryTag,
326337 _adjustDeliveryTag = adjustDeliveryTag ;
327338 }
328339
340+ public override ProtocolCommandId [ ] HandledProtocolCommandIds
341+ => [ ProtocolCommandId . BasicGetOk , ProtocolCommandId . BasicGetEmpty ] ;
342+
329343 internal DateTime StartTime { get ; } = DateTime . UtcNow ;
330344
331345 protected override Task DoHandleCommandAsync ( IncomingCommand cmd )
@@ -441,6 +455,9 @@ public QueueDeclareAsyncRpcContinuation(TimeSpan continuationTimeout, Cancellati
441455 {
442456 }
443457
458+ public override ProtocolCommandId [ ] HandledProtocolCommandIds
459+ => [ ProtocolCommandId . QueueDeclareOk ] ;
460+
444461 protected override Task DoHandleCommandAsync ( IncomingCommand cmd )
445462 {
446463 if ( cmd . CommandId == ProtocolCommandId . QueueDeclareOk )
@@ -481,6 +498,9 @@ public QueueDeleteAsyncRpcContinuation(TimeSpan continuationTimeout, Cancellatio
481498 {
482499 }
483500
501+ public override ProtocolCommandId [ ] HandledProtocolCommandIds
502+ => [ ProtocolCommandId . QueueDeleteOk ] ;
503+
484504 protected override Task DoHandleCommandAsync ( IncomingCommand cmd )
485505 {
486506 if ( cmd . CommandId == ProtocolCommandId . QueueDeleteOk )
@@ -504,6 +524,9 @@ public QueuePurgeAsyncRpcContinuation(TimeSpan continuationTimeout, Cancellation
504524 {
505525 }
506526
527+ public override ProtocolCommandId [ ] HandledProtocolCommandIds
528+ => [ ProtocolCommandId . QueuePurgeOk ] ;
529+
507530 protected override Task DoHandleCommandAsync ( IncomingCommand cmd )
508531 {
509532 if ( cmd . CommandId == ProtocolCommandId . QueuePurgeOk )
0 commit comments