Property | Type | Description | |
---|---|---|---|
_logger | slf4net.ILogger | ||
mClients | List |
||
mHeartbeatInterval | int | ||
mHeartbeatTimer | |||
mIdGenerator | IMessageIdGenerator | ||
mLock | object | ||
mMessageHistory | IMessageHistory |
Method | Description | |
---|---|---|
AddSubscriber ( |
||
Send ( string data ) : void | ||
Send ( string data, string eventType ) : void | ||
Send ( string data, string eventType, string messageId ) : void | ||
ServerSentEvent ( IMessageHistory messageHistory, IMessageIdGenerator idGenerator, int heartbeatInterval ) : System | ||
ServerSentEvent ( int noOfMessagesToRemember, bool generateMessageIds = false, int heartbeatInterval ) : System |
Method | Description | |
---|---|---|
AddClient ( Client client ) : void | ||
CheckMessage ( Message msg ) : void | ||
GetLastMessageId ( |
||
OnStreamAvailable ( Stream stream, System content, System context ) : void | ||
OnSubscriberAdded ( int subscriberCount ) : void | ||
OnSubscriberRemoved ( int subscriberCount ) : void | ||
SendAndRemoveDisconneced ( List |
||
SetupHeartbeat ( int heartbeatInterval ) : void |
Method | Description | |
---|---|---|
Send ( Message msg ) : void | ||
TimerCallback ( object state ) : void |
public AddSubscriber ( |
||
request | ||
return |
protected CheckMessage ( Message msg ) : void | ||
msg | Message | |
return | void |
protected GetLastMessageId ( |
||
content | ||
return | string |
protected OnStreamAvailable ( Stream stream, System content, System context ) : void | ||
stream | Stream | |
content | System | |
context | System | |
return | void |
protected OnSubscriberAdded ( int subscriberCount ) : void | ||
subscriberCount | int | |
return | void |
protected OnSubscriberRemoved ( int subscriberCount ) : void | ||
subscriberCount | int | |
return | void |
public Send ( string data, string eventType ) : void | ||
data | string | |
eventType | string | |
return | void |
public Send ( string data, string eventType, string messageId ) : void | ||
data | string | |
eventType | string | |
messageId | string | |
return | void |
protected SendAndRemoveDisconneced ( List |
||
clientsToSendTo | List |
|
msg | Message | |
return | void |
public ServerSentEvent ( IMessageHistory messageHistory, IMessageIdGenerator idGenerator, int heartbeatInterval ) : System | ||
messageHistory | IMessageHistory | |
idGenerator | IMessageIdGenerator | |
heartbeatInterval | int | |
return | System |
public ServerSentEvent ( int noOfMessagesToRemember, bool generateMessageIds = false, int heartbeatInterval ) : System | ||
noOfMessagesToRemember | int | |
generateMessageIds | bool | |
heartbeatInterval | int | |
return | System |
protected SetupHeartbeat ( int heartbeatInterval ) : void | ||
heartbeatInterval | int | |
return | void |
protected Timer,System.Threading mHeartbeatTimer | ||
return |
protected IMessageIdGenerator mIdGenerator | ||
return | IMessageIdGenerator |