Commit 03e012a8 authored by Savorboard's avatar Savorboard

add summary comment.

parent f08a8302
...@@ -10,12 +10,25 @@ namespace DotNetCore.CAP ...@@ -10,12 +10,25 @@ namespace DotNetCore.CAP
/// </summary> /// </summary>
public interface IConsumerClient : IDisposable 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); void Subscribe(IEnumerable<string> topics);
/// <summary>
/// Start listening
/// </summary>
void Listening(TimeSpan timeout, CancellationToken cancellationToken); void Listening(TimeSpan timeout, CancellationToken cancellationToken);
/// <summary>
/// Manual submit message offset when the message consumption is complete
/// </summary>
void Commit(); void Commit();
/// <summary>
/// Reject message and resumption
/// </summary>
void Reject(); void Reject();
event EventHandler<MessageContext> OnMessageReceived; event EventHandler<MessageContext> OnMessageReceived;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment