ServiceAliases Class

Summary

Windows service aliases.
Assembly
Cake.Services.dll
Namespace
Cake.Services
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["ServiceAliases"] class Type type-node

Syntax

public static class ServiceAliases

Attributes

Type Description
CakeAliasCategoryAttribute
CakeNamespaceImportAttribute

Methods

Name Value Summary
CanServicePauseAndContinue(ICakeContext, string, string) bool
Checks if the named service can be paused and continued
static
CanServicePauseAndContinue(ICakeContext, string) bool
Checks if the named service can be paused and continued
static
CanServiceShutdown(ICakeContext, string, string) bool
Checks if the named service can be shutdown
static
CanServiceShutdown(ICakeContext, string) bool
Checks if the named service can be shutdown
static
CanServiceStop(ICakeContext, string, string) bool
Checks if the named service can be stopped
static
CanServiceStop(ICakeContext, string) bool
Checks if the named service can be stopped
static
ContinueService(ICakeContext, string, string, int) bool
Continues a named service
static
ContinueService(ICakeContext, string, string) bool
Continues a named service
static
ContinueService(ICakeContext, string) bool
Continues a named service
static
ExecuteServiceCommand(ICakeContext, string, int) bool
Executes a command on a named service
static
ExecuteServiceCommand(ICakeContext, string, string, int) bool
Executes a command on a named service
static
GetService(ICakeContext, string, string) ServiceController
Gets the System.ServiceProcess.ServiceController that is associated with an existing service on the specified computer.
static
GetService(ICakeContext, string) ServiceController
Gets the System.ServiceProcess.ServiceController that is associated with an existing service on the specified computer.
static
GetServices(ICakeContext, string) List<ServiceController>
Gets a list of System.ServiceProcess.ServiceController on the specified computer.
static
GetServices(ICakeContext) List<ServiceController>
Gets a list of System.ServiceProcess.ServiceController on the specified computer.
static
GetServiceStatus(ICakeContext, string, string) ServiceControllerStatus
Gets the System.ServiceProcess.ServiceControllerStatus status of a service on the specified computer.
static
GetServiceStatus(ICakeContext, string) ServiceControllerStatus
Gets the System.ServiceProcess.ServiceControllerStatus status of a service on the specified computer.
static
InstallService(ICakeContext, InstallSettings) void
Installs a service on a computer
static
InstallService(ICakeContext, string, InstallSettings) void
Installs a service on a computer
static
IsServiceContinuing(ICakeContext, string, string) bool
Checks if the named service is continuing
static
IsServiceContinuing(ICakeContext, string) bool
Checks if the named service is continuing
static
IsServiceInstalled(ICakeContext, string, string) bool
Checks if the named service is installed
static
IsServiceInstalled(ICakeContext, string) bool
Checks if the named service is installed
static
IsServicePaused(ICakeContext, string, string) bool
Checks if the named service is paused
static
IsServicePaused(ICakeContext, string) bool
Checks if the named service is paused
static
IsServicePausing(ICakeContext, string, string) bool
Checks if the named service is pausing
static
IsServicePausing(ICakeContext, string) bool
Checks if the named service is pausing
static
IsServiceRunning(ICakeContext, string, string) bool
Checks if the named service is running
static
IsServiceRunning(ICakeContext, string) bool
Checks if the named service is running
static
IsServiceStarting(ICakeContext, string, string) bool
Checks if the named service is starting
static
IsServiceStarting(ICakeContext, string) bool
Checks if the named service is starting
static
IsServiceStopped(ICakeContext, string, string) bool
Checks if the named service is stopped
static
IsServiceStopped(ICakeContext, string) bool
Checks if the named service is stopped
static
IsServiceStopping(ICakeContext, string, string) bool
Checks if the named service is stopping
static
IsServiceStopping(ICakeContext, string) bool
Checks if the named service is stopping
static
PauseService(ICakeContext, string, string, int) bool
Pauses a named service
static
PauseService(ICakeContext, string, string) bool
Pauses a named service
static
PauseService(ICakeContext, string) bool
Pauses a named service
static
RestartService(ICakeContext, string, string, int) bool
Restarts a named service
static
RestartService(ICakeContext, string, string) bool
Restarts a named service
static
RestartService(ICakeContext, string) bool
Restarts a named service
static
StartService(ICakeContext, string, string, int, string[]) bool
Starts a named service
static
StartService(ICakeContext, string, string, int) bool
Starts a named service
static
StartService(ICakeContext, string, string) bool
Starts a named service
static
StartService(ICakeContext, string) bool
Starts a named service
static
StopService(ICakeContext, string, string, int) bool
Stops a named service
static
StopService(ICakeContext, string, string) bool
Stops a named service
static
StopService(ICakeContext, string) bool
Stops a named service
static
UninstallService(ICakeContext, string, string) void
Uninstalls a service from a computer
static
UninstallService(ICakeContext, string) void
Uninstalls a service from a computer
static

Extension Methods

Name Value Summary
ToDictionary() IDictionary<string, object>
Requires the Cake.DeployParams addin
ToStringWithNullMarkup() string
Returns the string value or a Not set> markup suitable for Spectre.Console.
Requires the Cake.Issues addin