-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add JetStream NATS Client Extensions (#598)
* Expose subscription manager * Separate subscription manager internal usage * Use INatsConnection in JS * Revert subscription manager internal * Tidy up connection interface * Expose base sub for extension * Connection docs * JetStream client extensions * dotnet format * Format * XMLDocs * Expose connection
- Loading branch information
Showing
29 changed files
with
316 additions
and
98 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
namespace NATS.Client.Core; | ||
|
||
/// <summary> | ||
/// Subscription manager interface. | ||
/// </summary> | ||
/// <remarks> | ||
/// This interface is used to manage subscriptions. However, it is not intended to be used directly. | ||
/// You can implement this interface if you are using low-level APIs and implement your own | ||
/// subscription manager. | ||
/// </remarks> | ||
public interface INatsSubscriptionManager | ||
{ | ||
/// <summary> | ||
/// Remove a subscription. | ||
/// </summary> | ||
/// <param name="sub">Subscription to remove.</param> | ||
/// <returns>A value task that represents the asynchronous remove operation.</returns> | ||
public ValueTask RemoveAsync(NatsSubBase sub); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.