Skip to content

CallbackException not raised for AsyncEventingBasicConsumer #1038

@ashish-g-lahane

Description

@ashish-g-lahane

RabbitMq_CallbackExceptionBug.zip

PFA the sample. When using AsyncEventingBasicConsumer, CallbackException event never fires. But when using EventingBasicConsumer (plz uncomment the code at the bottom of the Program.cs), it does.

I think the issue is in the class AsyncConsumerWorkService at line 93. The task is not awaited always. If the task finishes earlier or synchronously, then task.IsCompleted will be true resulting in never awaiting on the task.

"RabbitMQ.Client" Version="6.2.1"

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions