C# Class StatLight.Core.WebServer.InMemoryWebServer

Inheritance: IWebServer, IDisposable
Datei anzeigen Open project: staxmanade/StatLight Class Usage Examples

Private Properties

Property Type Description
GetLocalPath string
HandleUnknownRequest void
Log void
LogException void
ProcessGetRequest void
ProcessPostRequest void
ServeFunction void
ServeRequests void
ServeString void
SetContentType void
SetHttpStatus void

Public Methods

Method Description
Dispose ( ) : void
InMemoryWebServer ( ILogger logger, WebServerLocation webServerLocation, ResponseFactory responseFactory, IPostHandler postHandler, IEventPublisher eventPublisher ) : System
Start ( ) : void
Stop ( ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
GetLocalPath ( HttpListenerRequest request ) : string
HandleUnknownRequest ( HttpListenerRequest request, HttpListenerResponse response ) : void
Log ( string value ) : void
LogException ( Exception exception ) : void
ProcessGetRequest ( HttpListenerRequest request, HttpListenerResponse response ) : void
ProcessPostRequest ( HttpListenerRequest request, HttpListenerResponse response ) : void
ServeFunction ( HttpListenerRequest request, HttpListenerResponse response ) : void
ServeRequests ( ) : void
ServeString ( HttpListenerResponse response, byte value ) : void
SetContentType ( HttpListenerResponse response, string contentType ) : void
SetHttpStatus ( HttpListenerResponse response, HttpStatusCode status ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

InMemoryWebServer() public method

public InMemoryWebServer ( ILogger logger, WebServerLocation webServerLocation, ResponseFactory responseFactory, IPostHandler postHandler, IEventPublisher eventPublisher ) : System
logger ILogger
webServerLocation WebServerLocation
responseFactory ResponseFactory
postHandler IPostHandler
eventPublisher IEventPublisher
return System

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void