C# Class SignalR.DefaultSubscription

Inheritance: SignalR.Subscription
Show file Open project: Icenium/SignalR

Public Methods

Method Description
AddEvent ( string eventKey, SignalR.Topic topic ) : bool
DefaultSubscription ( string identity, IEnumerable eventKeys, Topic>.IDictionary topics, string cursor, Func callback, int maxMessages, IPerformanceCounterWriter counters ) : System
GetCursor ( ) : string
RemoveEvent ( string eventKey ) : void
SetEventTopic ( string eventKey, SignalR.Topic topic ) : void

Protected Methods

Method Description
BeforeInvoke ( object state ) : void
PerformWork ( List &items, string &nextCursor, int &totalCount, object &state ) : void

Private Methods

Method Description
GetMessageId ( Topic>.IDictionary topics, string key ) : ulong
GetMessageId ( SignalR.Topic topic ) : ulong
UpdateCursor ( string key, ulong id ) : bool

Method Details

AddEvent() public method

public AddEvent ( string eventKey, SignalR.Topic topic ) : bool
eventKey string
topic SignalR.Topic
return bool

BeforeInvoke() protected method

protected BeforeInvoke ( object state ) : void
state object
return void

DefaultSubscription() public method

public DefaultSubscription ( string identity, IEnumerable eventKeys, Topic>.IDictionary topics, string cursor, Func callback, int maxMessages, IPerformanceCounterWriter counters ) : System
identity string
eventKeys IEnumerable
topics Topic>.IDictionary
cursor string
callback Func
maxMessages int
counters IPerformanceCounterWriter
return System

GetCursor() public method

public GetCursor ( ) : string
return string

PerformWork() protected method

protected PerformWork ( List &items, string &nextCursor, int &totalCount, object &state ) : void
items List
nextCursor string
totalCount int
state object
return void

RemoveEvent() public method

public RemoveEvent ( string eventKey ) : void
eventKey string
return void

SetEventTopic() public method

public SetEventTopic ( string eventKey, SignalR.Topic topic ) : void
eventKey string
topic SignalR.Topic
return void