C# Class AutomationDrivers.IisExpressHost.IisExpress

Inheritance: IDisposable
ファイルを表示 Open project: ritterim/AutomationDrivers

Public Methods

Method Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

IisExpress ( string path, int port ) : System

Initializes a new instance of the IISExpressHost class.

Quit ( ) : void

Kills the IISExpress application based on the assigned pId

Start ( CancellationToken cancellationToken = default(CancellationToken) ) : Task

Starts the given cancellation token.

Stop ( ) : Task

Gets the stop.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the Web.UI.Tests.IISExpress.IISExpressHost and optionally releases the managed resources.

Private Methods

Method Description
SendStopMessageToProcess ( int pid ) : void

Sends a stop message to process.

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

Dispose() protected method

Releases the unmanaged resources used by the Web.UI.Tests.IISExpress.IISExpressHost and optionally releases the managed resources.
protected Dispose ( bool disposing ) : void
disposing bool /// true to release both managed and unmanaged resources; false to release only unmanaged /// resources. ///
return void

IisExpress() public method

Initializes a new instance of the IISExpressHost class.
/// Thrown when the requested directory is not present. /// /// Thrown when one or more arguments are outside the required range. ///
public IisExpress ( string path, int port ) : System
path string The full path to the targeted web project
port int The port assigned by ProcessFactory.GetAvailablePort()
return System

Quit() public method

Kills the IISExpress application based on the assigned pId
public Quit ( ) : void
return void

Start() public method

Starts the given cancellation token.
public Start ( CancellationToken cancellationToken = default(CancellationToken) ) : Task
cancellationToken System.Threading.CancellationToken The cancellation token.
return Task

Stop() public method

Gets the stop.
public Stop ( ) : Task
return Task