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 - Interfaces
- Base Types
-
- Object
graph BT
Type-->Base0["Object"]
Type-.->Interface0["IServiceManager"]
click Interface0 "/api/Cake.Services/IServiceManager"
Type["ServiceManager"]
class Type type-node
Syntax
public class ServiceManager : IServiceManager
Constructors
| Name | Summary |
|---|---|
| ServiceManager |
Initializes a new instance of the ServiceManager class.
|
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
|
| Create |
Process |
Assemble the args to pass to sc.exe
|
| 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
|
| 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 |
Throws an exception if the specified parameter's value is null.
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 |
Returns the string value or a
Not set> markup suitable for Spectre.Console.
From StringExtensions
Requires the Cake.Issues addin
|
