C# Class FuncTest.Helpers.FakeDataPlatform

Mostra file Open project: Microsoft/ApplicationInsights-dotnet-server

Public Methods

Method Description
Dispose ( ) : void

Disposes the listener

FakeDataPlatform ( string url ) : System

Initializes a new instance of the FakeDataPlatform class

GetAllReceivedDataItems ( ) : List

Returns the list of received data items The list of received data items

Start ( ) : void

Starts listening

Stop ( ) : void

Stops listening

Private Methods

Method Description
Decompress ( string content ) : string
Listen ( object state ) : void

Call back when incoming request is received

RouteRequest ( HttpListenerRequest request, HttpListenerResponse response ) : void

Call back when incoming request is received

Method Details

Dispose() public method

Disposes the listener
public Dispose ( ) : void
return void

FakeDataPlatform() public method

Initializes a new instance of the FakeDataPlatform class
public FakeDataPlatform ( string url ) : System
url string The endpoint at which listener listens
return System

GetAllReceivedDataItems() public method

Returns the list of received data items The list of received data items
public GetAllReceivedDataItems ( ) : List
return List

Start() public method

Starts listening
public Start ( ) : void
return void

Stop() public method

Stops listening
public Stop ( ) : void
return void