C# Class Artemis.Utilities.GameState.GameStateWebServer

Listens for JSON calls, parses them and raises an event. Includes some code from https://github.com/rakijah/CSGSI
Mostrar archivo Open project: SpoinkyNL/Artemis Class Usage Examples

Public Methods

Method Description
GameStateWebServer ( ILogger logger ) : System
Start ( ) : void
Stop ( ) : void

Protected Methods

Method Description
OnGameDataReceived ( GameDataReceivedEventArgs e ) : void

Private Methods

Method Description
HandleRequest ( HttpListenerRequest request ) : void
HandleRequest ( IAsyncResult ar ) : void
ListenerRun ( ) : void

Method Details

GameStateWebServer() public method

public GameStateWebServer ( ILogger logger ) : System
logger ILogger
return System

OnGameDataReceived() protected method

protected OnGameDataReceived ( GameDataReceivedEventArgs e ) : void
e GameDataReceivedEventArgs
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void