C# Class Microsoft.AspNet.SignalR.Messaging.DefaultSubscription

Inheritance: Subscription
Datei anzeigen Open project: SignalR/SignalR

Public Methods

Method Description
AddEvent ( string eventKey, Topic topic ) : bool
DefaultSubscription ( string identity, IList eventKeys, TopicLookup topics, string cursor, Func callback, int maxMessages, IStringMinifier stringMinifier, IPerformanceCounterManager counters, object state ) : System
RemoveEvent ( string eventKey ) : void
SetEventTopic ( string eventKey, Topic topic ) : void
WriteCursor ( TextWriter textWriter ) : void

Protected Methods

Method Description
BeforeInvoke ( object state ) : void

Private Methods

Method Description
FindCursorIndex ( string eventKey ) : int
GetCursorPrefix ( ) : string
GetCursorsFromEventKeys ( IList eventKeys, TopicLookup topics ) : List
GetMessageId ( Topic topic ) : ulong
GetMessageId ( TopicLookup topics, string key ) : ulong
PerformWork ( IList items, int &totalCount, object &state ) : void
UnminifyCursor ( string key, object state ) : string
UpdateCursor ( string key, ulong id ) : bool

Method Details

AddEvent() public method

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

BeforeInvoke() protected method

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

DefaultSubscription() public method

public DefaultSubscription ( string identity, IList eventKeys, TopicLookup topics, string cursor, Func callback, int maxMessages, IStringMinifier stringMinifier, IPerformanceCounterManager counters, object state ) : System
identity string
eventKeys IList
topics TopicLookup
cursor string
callback Func
maxMessages int
stringMinifier IStringMinifier
counters IPerformanceCounterManager
state object
return System

RemoveEvent() public method

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

SetEventTopic() public method

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

WriteCursor() public method

public WriteCursor ( TextWriter textWriter ) : void
textWriter TextWriter
return void