2019-10-10 14:03:12 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Threading.Tasks;
|
2017-02-12 14:18:12 +00:00
|
|
|
|
|
2021-05-29 19:51:58 +00:00
|
|
|
|
// ReSharper disable UnusedMember.Global
|
2021-07-18 11:27:10 +00:00
|
|
|
|
// ReSharper disable UnusedMemberInSuper.Global
|
2021-05-29 19:51:58 +00:00
|
|
|
|
|
2017-02-12 14:18:12 +00:00
|
|
|
|
namespace Tapeti
|
2016-11-16 22:11:05 +00:00
|
|
|
|
{
|
2019-08-13 18:30:04 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Manages subscriptions to queues as configured by the bindings.
|
|
|
|
|
/// </summary>
|
2021-06-02 18:56:10 +00:00
|
|
|
|
public interface ISubscriber : IAsyncDisposable, IDisposable
|
2016-11-16 22:11:05 +00:00
|
|
|
|
{
|
2019-08-13 18:30:04 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Starts consuming from the subscribed queues if not already started.
|
|
|
|
|
/// </summary>
|
2017-02-12 14:18:12 +00:00
|
|
|
|
Task Resume();
|
2021-01-15 08:57:46 +00:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Stops consuming from the subscribed queues.
|
|
|
|
|
/// </summary>
|
|
|
|
|
Task Stop();
|
2016-11-16 22:11:05 +00:00
|
|
|
|
}
|
|
|
|
|
}
|