C# Class Solar.Car.HttpGui

Application-Layer connecting the Web GUI with the Business-Layer Comm.
Inheritance: IAppLayer
Show file Open project: nusolar/sc6-telemetry-code

Public Methods

Method Description
AppLayerLoop ( CancellationToken token ) : Task
DoCommands ( System.Collections.Specialized.NameValueCollection query ) : void

Executes commands from Query parameters. This query API must match the CoffeeScript code.

HttpReceiveLoop ( CancellationToken token ) : Task

Indefinitely serve the Car's HTTP GUI.

ListenerCallback ( object result ) : void
SendResponse ( HttpListenerResponse response, string message ) : void

Method Details

AppLayerLoop() public method

public AppLayerLoop ( CancellationToken token ) : Task
token System.Threading.CancellationToken
return Task

DoCommands() public method

Executes commands from Query parameters. This query API must match the CoffeeScript code.
public DoCommands ( System.Collections.Specialized.NameValueCollection query ) : void
query System.Collections.Specialized.NameValueCollection Query.
return void

HttpReceiveLoop() public method

Indefinitely serve the Car's HTTP GUI.
public HttpReceiveLoop ( CancellationToken token ) : Task
token System.Threading.CancellationToken
return Task

ListenerCallback() public method

public ListenerCallback ( object result ) : void
result object
return void

SendResponse() public method

public SendResponse ( HttpListenerResponse response, string message ) : void
response System.Net.HttpListenerResponse
message string
return void