1
0
mirror of synced 2024-12-22 09:13:07 +01:00

Added Unsubscribe method

Clarified contribution license requirements in readme
This commit is contained in:
Mark van Renswoude 2024-12-20 11:31:17 +01:00
parent d4cc061955
commit c361af3b3c
3 changed files with 17 additions and 1 deletions

View File

@ -68,3 +68,6 @@ Master build (stable release)
Latest build Latest build
[![Build status](https://ci.appveyor.com/api/projects/status/cyuo0vm7admy0d9x?svg=true)](https://ci.appveyor.com/project/MvRens/tapeti) [![Build status](https://ci.appveyor.com/api/projects/status/cyuo0vm7admy0d9x?svg=true)](https://ci.appveyor.com/project/MvRens/tapeti)
## Contributing
By contributing to Tapeti's main repository (https://github.com/MvRens/Tapeti) you agree to dedicate your code-base contributions to the public domain under the Unlicense license.

View File

@ -84,6 +84,12 @@ namespace Tapeti
ISubscriber SubscribeSync(bool startConsuming = true); ISubscriber SubscribeSync(bool startConsuming = true);
/// <summary>
/// Stops the current subscriber.
/// </summary>
Task Unsubscribe();
/// <summary> /// <summary>
/// Returns an IPublisher implementation for the current connection. /// Returns an IPublisher implementation for the current connection.
/// </summary> /// </summary>

View File

@ -80,6 +80,13 @@ namespace Tapeti
} }
/// <inheritdoc />
public Task Unsubscribe()
{
return subscriber?.Stop() ?? Task.CompletedTask;
}
/// <inheritdoc /> /// <inheritdoc />
public IPublisher GetPublisher() public IPublisher GetPublisher()
{ {