C# Class Nancy.LongPoll.PollService

Inheritance: Nancy.LongPoll.IPollService
Datei anzeigen Open project: AIexandr/Nancy.LongPoll Class Usage Examples

Public Methods

Method Description
PollService ( ILogger logger = null, IPollAccessControlService pollAccessControlService = null ) : Newtonsoft.Json
SendMessage ( List clientIds, string messageName, string message ) : void
SendMessage ( string clientId, string messageName, string message ) : void
SendMessageToAllClients ( string messageName, string message ) : void
SendMessageToSession ( string sessId, string messageName, string message ) : void
SendMessageToSessions ( List sessIds, string messageName, string message ) : void
StopClient ( string clientId ) : void

Private Methods

Method Description
Register ( string clientHostAddess, string sessionId ) : Message
RemoveClientId ( string clientId ) : void
RemoveSession ( string sessId ) : void
Wait ( string clientId, ulong seqCode ) : string

Method Details

PollService() public method

public PollService ( ILogger logger = null, IPollAccessControlService pollAccessControlService = null ) : Newtonsoft.Json
logger ILogger
pollAccessControlService IPollAccessControlService
return Newtonsoft.Json

SendMessage() public method

public SendMessage ( List clientIds, string messageName, string message ) : void
clientIds List
messageName string
message string
return void

SendMessage() public method

public SendMessage ( string clientId, string messageName, string message ) : void
clientId string
messageName string
message string
return void

SendMessageToAllClients() public method

public SendMessageToAllClients ( string messageName, string message ) : void
messageName string
message string
return void

SendMessageToSession() public method

public SendMessageToSession ( string sessId, string messageName, string message ) : void
sessId string
messageName string
message string
return void

SendMessageToSessions() public method

public SendMessageToSessions ( List sessIds, string messageName, string message ) : void
sessIds List
messageName string
message string
return void

StopClient() public method

public StopClient ( string clientId ) : void
clientId string
return void