C# Class StatLight.Core.WebServer.InMemoryWebServer

Inheritance: IWebServer, IDisposable
Afficher le fichier Open project: staxmanade/StatLight Class Usage Examples

Private Properties

Свойство Type Description
GetLocalPath string
HandleUnknownRequest void
Log void
LogException void
ProcessGetRequest void
ProcessPostRequest void
ServeFunction void
ServeRequests void
ServeString void
SetContentType void
SetHttpStatus void

Méthodes publiques

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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Private Methods

Méthode 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 méthode

public Dispose ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

InMemoryWebServer() public méthode

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

Start() public méthode

public Start ( ) : void
Résultat void

Stop() public méthode

public Stop ( ) : void
Résultat void