C# Класс NanoByte.Common.Net.MicroServer

Provides a minimalistic HTTP webserver that can provide only a single file. Useful for testing download code.
Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
HandleRequest void
ListenLoop void
MicroServer System
StartListening string

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

Метод Описание
Dispose ( ) : void

Stops listening for incoming HTTP connections.

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

Метод Описание
HandleRequest ( HttpListenerContext context ) : void
ListenLoop ( ) : void

Waits for HTTP requests and responds to them if they ask for "file".

MicroServer ( [ resourceName, [ fileContent ) : System
StartListening ( ) : string

Starts listening and returns the URL prefix under which the content is reachable.

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

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

Stops listening for incoming HTTP connections.
public Dispose ( ) : void
Результат void