C# Class Gallatin.Core.Service.SessionState.SessionContext

Inheritance: ISessionContext
Show file Open project: williamoneill/Gallatin

Private Properties

Property Type Description
CloseServerConnections void
ConnectionEstablished void
DataSent void
HandleClientConnectionClosed void
HandleClientParserAdditionalDataRequested void
HandleClientParserPartialDataAvailable void
HandleClientParserReadRequestHeaderComplete void
HandleClientReceive void
HandleServerConnectionConnectionClosed void
HandleServerParserAdditionalDataRequested void
HandleServerParserBodyAvailable void
HandleServerParserMessageReadComplete void
HandleServerParserPartialDataAvailable void
HandleServerParserReadResponseHeaderComplete void
HandleServerReceive void
ObjectInvariant void
SessionContext System
SetupClientConnection void
SetupServerConnection void

Public Methods

Method Description
BeginConnectToRemoteHost ( string host, int port ) : void
ChangeState ( SessionStateType newState ) : void
OnSessionEnded ( ) : void
Reset ( ) : void
SendClientData ( byte data ) : void
SendServerData ( byte data ) : void
Start ( INetworkFacade connection ) : void

Private Methods

Method Description
CloseServerConnections ( ) : void
ConnectionEstablished ( bool success, INetworkFacade server ) : void
DataSent ( bool success, INetworkFacade facade ) : void
HandleClientConnectionClosed ( object sender, EventArgs e ) : void
HandleClientParserAdditionalDataRequested ( object sender, EventArgs e ) : void
HandleClientParserPartialDataAvailable ( object sender, HttpDataEventArgs e ) : void
HandleClientParserReadRequestHeaderComplete ( object sender, HttpRequestHeaderEventArgs e ) : void
HandleClientReceive ( bool success, byte data, INetworkFacade client ) : void
HandleServerConnectionConnectionClosed ( object sender, EventArgs e ) : void
HandleServerParserAdditionalDataRequested ( object sender, EventArgs e ) : void
HandleServerParserBodyAvailable ( object sender, HttpDataEventArgs e ) : void
HandleServerParserMessageReadComplete ( object sender, EventArgs e ) : void
HandleServerParserPartialDataAvailable ( object sender, HttpDataEventArgs e ) : void
HandleServerParserReadResponseHeaderComplete ( object sender, HttpResponseHeaderEventArgs e ) : void
HandleServerReceive ( bool success, byte data, INetworkFacade client ) : void
ObjectInvariant ( ) : void
SessionContext ( ISessionStateRegistry registry, INetworkFacadeFactory factory ) : System
SetupClientConnection ( INetworkFacade clientConnection ) : void
SetupServerConnection ( INetworkFacade serverConnection ) : void

Method Details

BeginConnectToRemoteHost() public method

public BeginConnectToRemoteHost ( string host, int port ) : void
host string
port int
return void

ChangeState() public method

public ChangeState ( SessionStateType newState ) : void
newState SessionStateType
return void

OnSessionEnded() public method

public OnSessionEnded ( ) : void
return void

Reset() public method

public Reset ( ) : void
return void

SendClientData() public method

public SendClientData ( byte data ) : void
data byte
return void

SendServerData() public method

public SendServerData ( byte data ) : void
data byte
return void

Start() public method

public Start ( INetworkFacade connection ) : void
connection INetworkFacade
return void