C# Class Nancy.Hosting.Event2.NancyEvent2Host

Inheritance: IDisposable
显示文件 Open project: kekekeks/evhttp-sharp

Public Methods

Method 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

Protected Methods

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

Private Methods

Method 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 method

public Dispose ( ) : void
return void

GetExceptionResponse() protected method

protected GetExceptionResponse ( Exception e ) : ResponseData
e System.Exception
return ResponseData

NancyEvent2Host() public method

public NancyEvent2Host ( string host, int port, INancyBootstrapper bootstrapper ) : System
host string
port int
bootstrapper INancyBootstrapper
return System

NancyEvent2Host() public method

public NancyEvent2Host ( string host, int port, INancyBootstrapper bootstrapper, int workers ) : System
host string
port int
bootstrapper INancyBootstrapper
workers int
return System

PostProcessNancyResponse() protected method

protected PostProcessNancyResponse ( Request request, Response response ) : void
request Request
response Response
return void

PreProcessRequest() protected method

protected PreProcessRequest ( EventHttpRequest request ) : void
request EvHttpSharp.EventHttpRequest
return void

Start() public method

public Start ( ) : void
return void

StopAsync() public method

public StopAsync ( ) : Task
return Task