This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see
Cake.Services.
Summary
Gets the System.ServiceProcess.ServiceController
that is associated with an existing service on the specified computer.
Syntax
public static ServiceController GetService(this ICakeContext context, string name)
Attributes
Type |
Description |
CakeMethodAliasAttribute |
|
CakeNamespaceImportAttribute |
|
Parameters
Name |
Type |
Description |
context |
ICakeContext |
The cake context. |
name |
string |
The name that identifies the service to the system. |
Return Value
Type |
Description |
ServiceController |
The System.ServiceProcess.ServiceController that is associated with an existing service on the specified computer. |