C# Class Nancy.Hosting.Self.NancyStreamHost

显示文件 Open project: serbrech/EventSourceSample Class Usage Examples

Public Methods

Method Description
NancyStreamHost ( ) : System

Initializes a new instance of the NancyStreamHost class for the specfied baseUris.

NancyStreamHost ( INancyBootstrapper bootstrapper ) : System

Initializes a new instance of the NancyStreamHost class for the specfied baseUris, using the provided bootstrapper.

NancyStreamHost ( Uri baseUri, INancyBootstrapper bootstrapper ) : System

Initializes a new instance of the NancyStreamHost class for the specfied baseUri, using the provided bootstrapper.

Start ( ) : void

Start listening for incoming requests.

Stop ( ) : void

Stop listening for incoming requests.

Private Methods

Method Description
ConvertNancyResponseToResponse ( System.Net.Response nancyResponse, HttpListenerResponse response ) : void
ConvertRequestToNancyRequest ( HttpListenerRequest request ) : System.Net.Request
GetExpectedRequestLength ( IDictionary incomingHeaders ) : long
GotCallback ( IAsyncResult ar ) : void
Process ( HttpListenerContext ctx ) : void

Method Details

NancyStreamHost() public method

Initializes a new instance of the NancyStreamHost class for the specfied baseUris.
public NancyStreamHost ( ) : System
return System

NancyStreamHost() public method

Initializes a new instance of the NancyStreamHost class for the specfied baseUris, using the provided bootstrapper.
public NancyStreamHost ( INancyBootstrapper bootstrapper ) : System
bootstrapper INancyBootstrapper The boostrapper that should be used to handle the request.
return System

NancyStreamHost() public method

Initializes a new instance of the NancyStreamHost class for the specfied baseUri, using the provided bootstrapper.
public NancyStreamHost ( Uri baseUri, INancyBootstrapper bootstrapper ) : System
baseUri System.Uri The that the host will listen to.
bootstrapper INancyBootstrapper The boostrapper that should be used to handle the request.
return System

Start() public method

Start listening for incoming requests.
public Start ( ) : void
return void

Stop() public method

Stop listening for incoming requests.
public Stop ( ) : void
return void