ServiceAliases.

GetServiceStatus(ICakeContext, string, string) Method

Summary

Gets the System.ServiceProcess.ServiceControllerStatus status of a service on the specified computer.
Assembly
Cake.Services.dll
Namespace
Cake.Services
Containing Type
ServiceAliases

Syntax

public static ServiceControllerStatus GetServiceStatus(this ICakeContext context, string name, string computer)

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.
computer string The computer on which the service resides.

Return Value

Type Description
ServiceControllerStatus The System.ServiceProcess.ServiceControllerStatus status of a service on the specified computer.