C# 클래스 CCNet.Common.Helpers.ServiceHelper

Common methods for working with properties collections.
파일 보기 프로젝트 열기: shuruev/CCNet.Extensions

공개 메소드들

메소드 설명
DeletePreviouslyInstalledServices ( ) : void

Deletes previously installed services.

GetServiceItemList ( TargetFramework targetFramework, string binaryPathName ) : List

Gets services properties.

비공개 메소드들

메소드 설명
CreateCustomProcess ( string command, string arguments, bool runAsAdministrator = false ) : Process

Creates process with custom settings.

GetInstalledServiceBinaryPathName ( string serviceName ) : string

Gets binary path name for service with specified service name.

GetInstalledServices ( ) : HashSet

Gets properties of installed services.

InstallService ( TargetFramework targetFramework, string binaryPathName ) : void

Installs services.

ParseServiceBinaryPathName ( string output ) : string

Parses output of "sc qc SERVICE_NAME" command to extract binary path name.

ParseServicesOutput ( string output ) : HashSet

Parses output of "sc query" command to extract currently installed services.

UninstallService ( TargetFramework targetFramework, string binaryPathName ) : void

Uninstalls services.

메소드 상세

DeletePreviouslyInstalledServices() 공개 정적인 메소드

Deletes previously installed services.
public static DeletePreviouslyInstalledServices ( ) : void
리턴 void

GetServiceItemList() 공개 정적인 메소드

Gets services properties.
public static GetServiceItemList ( TargetFramework targetFramework, string binaryPathName ) : List
targetFramework TargetFramework
binaryPathName string
리턴 List