Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 4416f650d1
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (30 sloc) 0.898 kb
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace SignalR
{
public interface IMessageBus
{
/// <summary>
///
/// </summary>
/// <param name="message"></param>
/// <returns></returns>
Task Publish(Message message);
/// <summary>
///
/// </summary>
/// <param name="subscriber"></param>
/// <param name="cursor"></param>
/// <param name="callback"></param>
/// <param name="maxMessages"></param>
/// <returns></returns>
IDisposable Subscribe(ISubscriber subscriber, string cursor, Func<MessageResult, Task<bool>> callback, int maxMessages);
/// <summary>
///
/// </summary>
/// <param name="eventKey"></param>
/// <returns></returns>
string GetCursor(string eventKey);
}
}
Jump to Line
Something went wrong with that request. Please try again.