C# 클래스 WebApplications.Utilities.Service.Common.Control.Controller

Handles manipulation of services.
파일 보기 프로젝트 열기: webappsuk/CoreLibraries

공개 메소드들

메소드 설명
GetServiceStatus ( [ serviceName ) : ServiceControllerStatus

Gets the service status.

Install ( [ serviceName, [ displayName, [ description, [ fileName, [ userName = null, [ password = null ) : void

Installs the specified service name.

ServiceIsInstalled ( [ serviceName ) : bool

Whether the specified service is installed.

비공개 메소드들

메소드 설명
ChangeServiceConfig2 ( IntPtr hService, ServiceConfig dwInfoLevel, SERVICE_DESCRIPTION &lpInfo ) : bool
CloseServiceHandle ( IntPtr hSCObject ) : bool
CommandService ( [ serviceName, int command, CancellationToken token = default(CancellationToken) ) : Task
ContinueService ( [ serviceName, CancellationToken token = default(CancellationToken) ) : Task
CreateService ( IntPtr hSCManager, string lpServiceName, string lpDisplayName, ServiceAccessRights dwDesiredAccess, int dwServiceType, ServiceBootFlag dwStartType, ServiceError dwErrorControl, string lpBinaryPathName, string lpLoadOrderGroup, IntPtr lpdwTagId, string lpDependencies, string lp, string lpPassword ) : IntPtr
DeleteService ( IntPtr hService ) : bool
OpenSCManager ( ScmAccessRights rights ) : IntPtr

Opens the sc manager.

OpenSCManager ( string machineName, string databaseName, ScmAccessRights dwDesiredAccess ) : IntPtr
OpenService ( IntPtr hSCManager, string lpServiceName, ServiceAccessRights dwDesiredAccess ) : IntPtr
PauseService ( [ serviceName, CancellationToken token = default(CancellationToken) ) : Task
StartService ( [ serviceName, [ args = null, CancellationToken token = default(CancellationToken) ) : Task
StopService ( [ serviceName, CancellationToken token = default(CancellationToken) ) : Task
Uninstall ( [ serviceName, CancellationToken token = default(CancellationToken) ) : Task
WaitForAsync ( [ serviceController, ServiceControllerStatus status, CancellationToken token = default(CancellationToken) ) : Task

메소드 상세

GetServiceStatus() 공개 정적인 메소드

Gets the service status.
public static GetServiceStatus ( [ serviceName ) : ServiceControllerStatus
serviceName [ Name of the service.
리턴 ServiceControllerStatus

Install() 공개 정적인 메소드

Installs the specified service name.
///
public static Install ( [ serviceName, [ displayName, [ description, [ fileName, [ userName = null, [ password = null ) : void
serviceName [ Name of the service.
displayName [ The display name.
description [ The description.
fileName [ Name of the file.
userName [ Name of the user.
password [ The password.
리턴 void

ServiceIsInstalled() 공개 정적인 메소드

Whether the specified service is installed.
public static ServiceIsInstalled ( [ serviceName ) : bool
serviceName [ Name of the service.
리턴 bool