1
0
mirror of synced 2024-12-22 01:03: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

@ -67,4 +67,7 @@ Master build (stable release)
[![Build status](https://ci.appveyor.com/api/projects/status/cyuo0vm7admy0d9x/branch/master?svg=true)](https://ci.appveyor.com/project/MvRens/tapeti/branch/master)
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);
/// <summary>
/// Stops the current subscriber.
/// </summary>
Task Unsubscribe();
/// <summary>
/// Returns an IPublisher implementation for the current connection.
/// </summary>

View File

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