C# Class Nancy.Hosting.Self.NancyStreamHost

Afficher le fichier Open project: serbrech/EventSourceSample Class Usage Examples

Méthodes publiques

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

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

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

NancyStreamHost() public méthode

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.
Résultat System

NancyStreamHost() public méthode

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.
Résultat System

Start() public méthode

Start listening for incoming requests.
public Start ( ) : void
Résultat void

Stop() public méthode

Stop listening for incoming requests.
public Stop ( ) : void
Résultat void