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
Responsible for controlling windows services
- Assembly
- Cake
.Services .dll - Namespace
- Cake
.Services - Implementing Types
graph BT
Type["IServiceManager"]
class Type type-node
Implementing0["ServiceManager"]-.->Type
click Implementing0 "/api/Cake.Services/ServiceManager"
Syntax
public interface IServiceManager
Methods
Name | Value | Summary |
---|---|---|
CanPauseAndContinue |
bool |
Checks if the named service can be paused and continued
|
CanShutdown |
bool |
Checks if the named service can be shutdown
|
CanStop |
bool |
Checks if the named service can be stopped
|
Continue |
bool |
Continues a named service
|
ExecuteCommand |
bool |
Executes a command on a named service
|
GetService |
ServiceController |
Gets the
System.ServiceProcess.ServiceController that is associated with an existing service on the specified computer.
|
GetServices |
List |
Gets a list of
System.ServiceProcess.ServiceController on the specified computer.
|
GetStatus |
Service |
Gets the
System.ServiceProcess.ServiceControllerStatus status of a service on the specified computer.
|
Install |
void |
Installs a service on a computer
|
IsContinuing |
bool |
Checks if the named service is continuing
|
IsInstalled |
bool |
Checks if the named service is installed
|
IsPaused |
bool |
Checks if the named service is paused
|
IsPausing |
bool |
Checks if the named service is pausing
|
IsRunning |
bool |
Checks if the named service is running
|
IsStarting |
bool |
Checks if the named service is starting
|
IsStopped |
bool |
Checks if the named service is stopped
|
IsStopping |
bool |
Checks if the named service is stopping
|
Pause |
bool |
Pauses a named service
|
Restart |
bool |
Restarts a named service
|
ServiceExists |
bool |
Checks if the named service exists
|
Start |
bool |
Starts a named service
|
Stop |
bool |
Stops a named service
|
Uninstall |
bool |
Uninstalls a service from a computer
|
Extension Methods
Name | Value | Summary |
---|---|---|
Dump |
string |
Get a basic string representation of specified object.
From LoggingExtensions
Requires the Cake.Incubator addin
|
IsIn |
bool |
Checks if the source is contained in a list
From EnumerableExtensions
Requires the Cake.Incubator addin
|
NotNull |
void |
Throws an exception if the specified parameter's value is null.
From Extensions
Requires the Cake.Ftp addin
|
NotNull |
void |
From IssuesArgumentChecks
Requires the Cake.Issues addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException with a specific message if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ThrowIfNull |
T |
Throws a
System.ArgumentNullException if the value is null, otherwise returns the value
From AssertExtensions
Requires the Cake.Incubator addin
|
ToDictionary |
IDictionary |
From ObjectHelpers
Requires the Cake.DeployParams addin
|
To |
string |
From StringExtensions
Requires the Cake.Issues addin
|