Tapeti/Tapeti/ISubscriber.cs

25 lines
572 B
C#
Raw Normal View History

using System;
using System.Threading.Tasks;
// ReSharper disable UnusedMember.Global
namespace Tapeti
{
/// <inheritdoc />
/// <summary>
/// Manages subscriptions to queues as configured by the bindings.
/// </summary>
public interface ISubscriber : 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();
}
}