-
Notifications
You must be signed in to change notification settings - Fork 151
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
Add Message Request APIs #411
Conversation
Signed-off-by: Colin Sullivan <[email protected]>
Signed-off-by: Colin Sullivan <[email protected]>
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.
Code LGTM, not sure if Task needs mentioning in comments.
If not I'll Approve
src/NATS.Client/Conn.cs
Outdated
@@ -3294,6 +3373,177 @@ public Task<Msg> RequestAsync(string subject, byte[] data, int offset, int count | |||
return requestAsync(subject, null, data, offset, count, Timeout.Infinite, token); | |||
} | |||
|
|||
/// <summary> | |||
/// Asynchronously sends a request payload and returns the response <see cref="Msg"/>, or throws |
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.
correct cref?
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.
Yep, it links.
Signed-off-by: Colin Sullivan <[email protected]>
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.
LGTM
Signed-off-by: Colin Sullivan <[email protected]>
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.
LGTM
Thanks @matthiashanel , once tests are green I'll merge. |
Signed-off-by: Colin Sullivan <[email protected]>
Test pass, the issue is with timeouts when publishing the build artifacts. Will merge. |
Add Request and RequestAsync APIs to support requests passing a NATS message (and thus supporting headers).
Resolves #409
Signed-off-by: Colin Sullivan [email protected]