C# Class NAnt.MSNet.Tasks.ServiceControllerTask

Inheritance: NAnt.Core.Task
Mostrar archivo Open project: skolima/NAnt

Private Properties

Property Type Description
ContinueService void
DetermineDesiredStatus ServiceControllerStatus
PauseService void
RestartService void
StartService void
StopService void

Public Methods

Method Description
ServiceControllerTask ( ) : System

Initializes a new instance of the ServiceControllerTask class.

Protected Methods

Method Description
ExecuteTask ( ) : void

Peforms actions on the service in order to reach the desired status.

Private Methods

Method Description
ContinueService ( ServiceController serviceController ) : void

Continues the service identified by ServiceName and MachineName.

DetermineDesiredStatus ( ) : ServiceControllerStatus

Determines the desired status of the service based on the action that should be performed on it.

PauseService ( ServiceController serviceController ) : void

Pauses the service identified by ServiceName and MachineName.

RestartService ( ServiceController serviceController ) : void

Restarts the service identified by ServiceName and MachineName.

StartService ( ServiceController serviceController ) : void

Starts the service identified by ServiceName and MachineName.

StopService ( ServiceController serviceController ) : void

Stops the service identified by ServiceName and MachineName.

Method Details

ExecuteTask() protected method

Peforms actions on the service in order to reach the desired status.
protected ExecuteTask ( ) : void
return void

ServiceControllerTask() public method

Initializes a new instance of the ServiceControllerTask class.
public ServiceControllerTask ( ) : System
return System