C# Class AutomationDrivers.IisExpressHost.IisExpress

Inheritance: IDisposable
Afficher le fichier Open project: ritterim/AutomationDrivers

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode Description
SendStopMessageToProcess ( int pid ) : void

Sends a stop message to process.

Method Details

Dispose() public méthode

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

Dispose() protected méthode

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. ///
Résultat void

IisExpress() public méthode

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()
Résultat System

Quit() public méthode

Kills the IISExpress application based on the assigned pId
public Quit ( ) : void
Résultat void

Start() public méthode

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

Stop() public méthode

Gets the stop.
public Stop ( ) : Task
Résultat Task