Skip to content
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

Fill in Publish / Request Header Gaps #839 #738

Merged
merged 5 commits into from
Jan 30, 2023
Merged

Conversation

scottf
Copy link
Collaborator

@scottf scottf commented Jan 27, 2023

addressing #736

/// <param name="msg">A <see cref="Msg"/> instance containing the subject, optional reply, and data to publish
/// to the NATS server.</param>
/// <seealso cref="IConnection.Publish(string, byte[])"/>
void Publish(Msg msg);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is just moved lower down for organizational purposes

/// <param name="timeout">The number of milliseconds to wait.</param>
/// <returns>A <see cref="Msg"/> with the response from the NATS server.</returns>
/// <seealso cref="IConnection.Request(Msg)"/>
Msg Request(Msg message, int timeout);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is just moved up for organizational purposes

@scottf scottf marked this pull request as ready for review January 28, 2023 16:52
@ColinSullivan1
Copy link
Member

Is there a request for this? It is convenient but the API footprint if getting large with all of the overloads. In the past I nudged users toward msg API if they needed to use headers.

@scottf scottf changed the title adding publish signatures to take headers parameters Fill in Publish / Request Header Gaps #839 Jan 30, 2023
Copy link
Member

@ColinSullivan1 ColinSullivan1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Per direct discussions, the API footprint addition falls into an ease of use feature so it a positive imo. LGMT.

@scottf scottf merged commit 6a52992 into master Jan 30, 2023
@scottf scottf deleted the publish-signature-gaps branch January 30, 2023 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants