How to get channel from Received event? #1228
Closed
pigLoveRabbit520
started this conversation in
General
Replies: 2 comments 1 reply
-
I'm pretty sure it should be like this: ...
private static void EventingBasicConsumer_Received(object sender, BasicDeliverEventArgs e)
{
var consumer = sender as EventingBasicConsumer;
var channel = consumer.Model;
channel.BasicAck(e.DeliveryTag, false); // ack failed.
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
@stebet thank you. @pigLoveRabbit520 consider using GitHub Discussions for questions in the future. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
It seems I have
channelForEventing
,channel
is invalid.Beta Was this translation helpful? Give feedback.
All reactions