C# Класс Nancy.Hosting.Self.NancyStreamHost

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

NancyStreamHost() публичный Метод

Initializes a new instance of the NancyStreamHost class for the specfied baseUris.
public NancyStreamHost ( ) : System
Результат System

NancyStreamHost() публичный Метод

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.
Результат System

NancyStreamHost() публичный Метод

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.
Результат System

Start() публичный Метод

Start listening for incoming requests.
public Start ( ) : void
Результат void

Stop() публичный Метод

Stop listening for incoming requests.
public Stop ( ) : void
Результат void