C# Class Simpl.OODSS.Distributed.Server.ClientSessionManager.WebSocketClientSessionManager

Inheritance: BaseSessionManager
Show file Open project: ecologylab/simplCSharp

Public Methods

Method Description
GetAddress ( ) : IPEndPoint

Get the client's Ip address

ProcessString ( string requestMessageString, long uid ) : ResponseMessage

process request message in serialized form, and return the response message

SendUpdateToClient ( UpdateMessage update, string receivingSessionId ) : void

send update message to client

WebSocketClientSessionManager ( string sessionId, SimplTypesScope translationScope, Scope applicationObjectScope, ServerProcessor frontend ) : System

Protected Methods

Method Description
PerformService ( RequestMessage requestMessage ) : ResponseMessage

perform service that specified in the request message

ProcessRequest ( RequestMessage requestMessage ) : ResponseMessage

process the deserialized request message

Method Details

GetAddress() public method

Get the client's Ip address
public GetAddress ( ) : IPEndPoint
return System.Net.IPEndPoint

PerformService() protected method

perform service that specified in the request message
protected PerformService ( RequestMessage requestMessage ) : ResponseMessage
requestMessage Simpl.OODSS.Messages.RequestMessage request message
return Simpl.OODSS.Messages.ResponseMessage

ProcessRequest() protected method

process the deserialized request message
protected ProcessRequest ( RequestMessage requestMessage ) : ResponseMessage
requestMessage Simpl.OODSS.Messages.RequestMessage deserialized request message
return Simpl.OODSS.Messages.ResponseMessage

ProcessString() public method

process request message in serialized form, and return the response message
public ProcessString ( string requestMessageString, long uid ) : ResponseMessage
requestMessageString string request message in serialized form
uid long request message's uid
return Simpl.OODSS.Messages.ResponseMessage

SendUpdateToClient() public method

send update message to client
public SendUpdateToClient ( UpdateMessage update, string receivingSessionId ) : void
update Simpl.OODSS.Messages.UpdateMessage update message
receivingSessionId string sessionId of the client
return void

WebSocketClientSessionManager() public method

public WebSocketClientSessionManager ( string sessionId, SimplTypesScope translationScope, Scope applicationObjectScope, ServerProcessor frontend ) : System
sessionId string
translationScope Simpl.Serialization.SimplTypesScope
applicationObjectScope Scope
frontend ServerProcessor
return System