arcus-azure/arcus.messaging

Catch `OperationCancelledException` in message pumps

stijnmoreels opened this issue · 0 comments

Describe the solution you'd like
Let's catch OperationCancelledException to control cancellation ourselves, and log it ourselves in the message pumps. We could check also if the stoppingToken.IsCancelRequested results to true before catching so we're sure that only cancellations are logged this way.