C# Class WebClientDemo.HttpServer

Базовый класс для создания веб-сервера
За основу был взят класс из блога Рика Страла (Rick Strahl) http://weblog.west-wind.com/posts/2005/Dec/04/Add-a-Web-Server-to-your-NET-20-app-with-a-few-lines-of-code
Inheritance: IDisposable, INotifyPropertyChanged
ファイルを表示 Open project: bazile/Training Class Usage Examples

Public Methods

Method Description
Start ( string uriPrefix ) : void

Starts the Web Service

Stop ( ) : void

Shut down the Web Service

Private Methods

Method Description
IDisposable ( ) : void
OnPropertyChanged ( string propertyName ) : void
WebRequestCallback ( IAsyncResult asyncResult ) : void

Method Details

Start() public method

Starts the Web Service
public Start ( string uriPrefix ) : void
uriPrefix string /// A Uri that acts as the base that the server is listening on. /// Format should be: http://127.0.0.1:8080/ or http://127.0.0.1:8080/somevirtual/ /// Note: the trailing backslash is required! For more info see the /// HttpListener.Prefixes property on MSDN. ///
return void

Stop() public method

Shut down the Web Service
public Stop ( ) : void
return void