C# Class Nancy.Hosting.Event2.NancyEvent2Host

Inheritance: IDisposable
Afficher le fichier Open project: kekekeks/evhttp-sharp

Méthodes publiques

Méthode Description
Dispose ( ) : void
NancyEvent2Host ( string host, int port, INancyBootstrapper bootstrapper ) : System
NancyEvent2Host ( string host, int port, INancyBootstrapper bootstrapper, int workers ) : System
Start ( ) : void
StopAsync ( ) : Task

Méthodes protégées

Méthode Description
GetExceptionResponse ( Exception e ) : ResponseData
PostProcessNancyResponse ( Request request, Response response ) : void
PreProcessRequest ( EventHttpRequest request ) : void

Private Methods

Méthode Description
CreateRequest ( string method, string host, string path, IDictionary headers, Nancy.IO.RequestStream body, string scheme, string query = null, string ip = null ) : Request
DoRespond ( EventHttpRequest req, ResponseData resp ) : void
RequestHandler ( EventHttpRequest req ) : void

Method Details

Dispose() public méthode

public Dispose ( ) : void
Résultat void

GetExceptionResponse() protected méthode

protected GetExceptionResponse ( Exception e ) : ResponseData
e System.Exception
Résultat ResponseData

NancyEvent2Host() public méthode

public NancyEvent2Host ( string host, int port, INancyBootstrapper bootstrapper ) : System
host string
port int
bootstrapper INancyBootstrapper
Résultat System

NancyEvent2Host() public méthode

public NancyEvent2Host ( string host, int port, INancyBootstrapper bootstrapper, int workers ) : System
host string
port int
bootstrapper INancyBootstrapper
workers int
Résultat System

PostProcessNancyResponse() protected méthode

protected PostProcessNancyResponse ( Request request, Response response ) : void
request Request
response Response
Résultat void

PreProcessRequest() protected méthode

protected PreProcessRequest ( EventHttpRequest request ) : void
request EvHttpSharp.EventHttpRequest
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

StopAsync() public méthode

public StopAsync ( ) : Task
Résultat Task