Sfoglia il codice sorgente

add summary comment.

master
Savorboard 7 anni fa
parent
commit
03e012a836
1 ha cambiato i file con 13 aggiunte e 0 eliminazioni
  1. +13
    -0
      src/DotNetCore.CAP/IConsumerClient.cs

+ 13
- 0
src/DotNetCore.CAP/IConsumerClient.cs Vedi File

@@ -10,12 +10,25 @@ namespace DotNetCore.CAP
/// </summary>
public interface IConsumerClient : IDisposable
{
/// <summary>
/// Subscribe to a set of topics to the message queue
/// </summary>
/// <param name="topics"></param>
void Subscribe(IEnumerable<string> topics);

/// <summary>
/// Start listening
/// </summary>
void Listening(TimeSpan timeout, CancellationToken cancellationToken);

/// <summary>
/// Manual submit message offset when the message consumption is complete
/// </summary>
void Commit();

/// <summary>
/// Reject message and resumption
/// </summary>
void Reject();

event EventHandler<MessageContext> OnMessageReceived;


Caricamento…
Annulla
Salva