C# 클래스 withSIX.Core.Presentation.Bridge.Services.ProcessManager.ManagementInternal

상속: IManagement, IEnableLogging
파일 보기 프로젝트 열기: SIXNetworks/withSIX.Desktop

공개 메소드들

메소드 설명
AddEnvironmentVariables ( ProcessStartInfo info, string>.IDictionary vars ) : void
FindProcess ( string name, string path = null ) : System.Diagnostics.Process[]
GetCommandlineArgs ( string name ) : string>.Dictionary
GetCommandlineArgs ( Process process ) : string
GetCommandlineArgs ( int id ) : string
GetExecuteablePaths ( string exe ) : IAbsoluteFilePath>>.IEnumerable
GetNamedWmiProcessesByParentId ( string name, int pid ) : System.Management.ManagementObjectCollection
GetProcessPath ( int processId ) : IAbsoluteFilePath
GetRunningProcesses ( string exe ) : System.Diagnostics.Process[]
GetWmiProcessesById ( int pid ) : System.Management.ManagementObjectCollection
GetWmiProcessesByParentId ( int pid ) : System.Management.ManagementObjectCollection
Kill ( int pid, bool gracefully = false ) : void
KillByName ( string name, string path = null, bool gracefully = false ) : bool
KillNamedProcessChildren ( string name, int pid, bool gracefully = false ) : void
KillProcess ( Process p, bool gracefully = false ) : void
KillProcessChildren ( int pid, bool gracefully = false ) : void
KillProcessInclChildren ( int pid, bool gracefully = false ) : void
Running ( string exe ) : bool
SetAffinity ( Process process, IEnumerable usedProcessors ) : void
WaitForExit ( string procName, int timeoutSeconds = int.MaxValue ) : void
WaitForExitALittleMore ( string procName, int timeoutSeconds = int.MaxValue ) : Task

메소드 상세

AddEnvironmentVariables() 공개 메소드

public AddEnvironmentVariables ( ProcessStartInfo info, string>.IDictionary vars ) : void
info System.Diagnostics.ProcessStartInfo
vars string>.IDictionary
리턴 void

FindProcess() 공개 메소드

public FindProcess ( string name, string path = null ) : System.Diagnostics.Process[]
name string
path string
리턴 System.Diagnostics.Process[]

GetCommandlineArgs() 공개 메소드

public GetCommandlineArgs ( string name ) : string>.Dictionary
name string
리턴 string>.Dictionary

GetCommandlineArgs() 공개 메소드

public GetCommandlineArgs ( Process process ) : string
process System.Diagnostics.Process
리턴 string

GetCommandlineArgs() 공개 메소드

public GetCommandlineArgs ( int id ) : string
id int
리턴 string

GetExecuteablePaths() 공개 메소드

public GetExecuteablePaths ( string exe ) : IAbsoluteFilePath>>.IEnumerable
exe string
리턴 IAbsoluteFilePath>>.IEnumerable

GetNamedWmiProcessesByParentId() 공개 메소드

public GetNamedWmiProcessesByParentId ( string name, int pid ) : System.Management.ManagementObjectCollection
name string
pid int
리턴 System.Management.ManagementObjectCollection

GetProcessPath() 공개 메소드

public GetProcessPath ( int processId ) : IAbsoluteFilePath
processId int
리턴 IAbsoluteFilePath

GetRunningProcesses() 공개 메소드

public GetRunningProcesses ( string exe ) : System.Diagnostics.Process[]
exe string
리턴 System.Diagnostics.Process[]

GetWmiProcessesById() 공개 메소드

public GetWmiProcessesById ( int pid ) : System.Management.ManagementObjectCollection
pid int
리턴 System.Management.ManagementObjectCollection

GetWmiProcessesByParentId() 공개 메소드

public GetWmiProcessesByParentId ( int pid ) : System.Management.ManagementObjectCollection
pid int
리턴 System.Management.ManagementObjectCollection

Kill() 공개 메소드

public Kill ( int pid, bool gracefully = false ) : void
pid int
gracefully bool
리턴 void

KillByName() 공개 메소드

public KillByName ( string name, string path = null, bool gracefully = false ) : bool
name string
path string
gracefully bool
리턴 bool

KillNamedProcessChildren() 공개 메소드

public KillNamedProcessChildren ( string name, int pid, bool gracefully = false ) : void
name string
pid int
gracefully bool
리턴 void

KillProcess() 공개 메소드

public KillProcess ( Process p, bool gracefully = false ) : void
p System.Diagnostics.Process
gracefully bool
리턴 void

KillProcessChildren() 공개 메소드

public KillProcessChildren ( int pid, bool gracefully = false ) : void
pid int
gracefully bool
리턴 void

KillProcessInclChildren() 공개 메소드

public KillProcessInclChildren ( int pid, bool gracefully = false ) : void
pid int
gracefully bool
리턴 void

Running() 공개 메소드

public Running ( string exe ) : bool
exe string
리턴 bool

SetAffinity() 공개 메소드

public SetAffinity ( Process process, IEnumerable usedProcessors ) : void
process System.Diagnostics.Process
usedProcessors IEnumerable
리턴 void

WaitForExit() 공개 메소드

public WaitForExit ( string procName, int timeoutSeconds = int.MaxValue ) : void
procName string
timeoutSeconds int
리턴 void

WaitForExitALittleMore() 공개 메소드

public WaitForExitALittleMore ( string procName, int timeoutSeconds = int.MaxValue ) : Task
procName string
timeoutSeconds int
리턴 Task