-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Publisher Confirms from RMQ #1494
Conversation
@@ -74,7 +73,7 @@ public RmqMessageProducerConfrmationsSendMessageTests () | |||
[Fact] | |||
public async Task When_confirming_posting_a_message_via_the_messaging_gateway() | |||
{ | |||
_messageProducer.Send(_message); | |||
await _messageProducer.SendAsync(_message); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't support SendAsync on an RMQ producer as there is no Async method on RMQ. I'll revert then patch a fix to use a taskcompletion source so at least that code path won't throw for now
…doesn't have async support. So we wrap in a task completion source
@holytshirt I fixed that issue around the TaskCompletionSource for SendAsync on the RMQ message producer. Any more actions you would like to see, or move this one into master? |
Support Publisher Confirms from RMQ (BrighterCommand#1494)
We did the hard work for this under two other changes:
At that point it became fairly easy to plug RQM confirms into this model. it just needs to support the right interface and raise the event when it receives confirmation that the message has been published
Closes#275