C# 클래스 NanoByte.Common.Net.MicroServer

Provides a minimalistic HTTP webserver that can provide only a single file. Useful for testing download code.
상속: IDisposable
파일 보기 프로젝트 열기: nano-byte/common 1 사용 예제들

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