Tapeti/Tapeti/ISubscriber.cs

25 lines
615 B
C#
Raw Permalink Normal View History

using System;
using System.Threading.Tasks;
// ReSharper disable UnusedMember.Global
// ReSharper disable UnusedMemberInSuper.Global
namespace Tapeti
{
/// <summary>
/// Manages subscriptions to queues as configured by the bindings.
/// </summary>
2021-06-02 18:56:10 +00:00
public interface ISubscriber : IAsyncDisposable, IDisposable
{
/// <summary>
/// Starts consuming from the subscribed queues if not already started.
/// </summary>
Task Resume();
2021-01-15 08:57:46 +00:00
/// <summary>
/// Stops consuming from the subscribed queues.
/// </summary>
Task Stop();
}
}