C# Class stubby.Portals.Stubs

Inheritance: IDisposable
Show file Open project: mrak/stubby4net Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
Start ( string location, uint port, uint httpsPort, bool disableHttps ) : void
Stop ( ) : void
Stubs ( stubby.Domain.EndpointDb endpointDb ) : System
Stubs ( stubby.Domain.EndpointDb endpointDb, HttpListener listener ) : System

Private Methods

Method Description
AsyncHandler ( IAsyncResult result ) : void
CreateNameValueCollection ( NameValueCollection collection, bool caseSensitiveKeys = true ) : NameValueCollection
FindEndpoint ( HttpListenerContext context ) : Response
GetImageFormat ( string extension ) : ImageFormat
ResponseHandler ( HttpListenerContext context ) : void
WriteResponseBody ( HttpListenerContext context, Response found ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Start() public method

public Start ( string location, uint port, uint httpsPort, bool disableHttps ) : void
location string
port uint
httpsPort uint
disableHttps bool
return void

Stop() public method

public Stop ( ) : void
return void

Stubs() public method

public Stubs ( stubby.Domain.EndpointDb endpointDb ) : System
endpointDb stubby.Domain.EndpointDb
return System

Stubs() public method

public Stubs ( stubby.Domain.EndpointDb endpointDb, HttpListener listener ) : System
endpointDb stubby.Domain.EndpointDb
listener System.Net.HttpListener
return System