C# Class withSIX.Core.Presentation.Bridge.Services.ProcessManager.ManagementInternal

Inheritance: IManagement, IEnableLogging
Afficher le fichier Open project: SIXNetworks/withSIX.Desktop

Méthodes publiques

Méthode Description
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

Method Details

AddEnvironmentVariables() public méthode

public AddEnvironmentVariables ( ProcessStartInfo info, string>.IDictionary vars ) : void
info System.Diagnostics.ProcessStartInfo
vars string>.IDictionary
Résultat void

FindProcess() public méthode

public FindProcess ( string name, string path = null ) : System.Diagnostics.Process[]
name string
path string
Résultat System.Diagnostics.Process[]

GetCommandlineArgs() public méthode

public GetCommandlineArgs ( string name ) : string>.Dictionary
name string
Résultat string>.Dictionary

GetCommandlineArgs() public méthode

public GetCommandlineArgs ( Process process ) : string
process System.Diagnostics.Process
Résultat string

GetCommandlineArgs() public méthode

public GetCommandlineArgs ( int id ) : string
id int
Résultat string

GetExecuteablePaths() public méthode

public GetExecuteablePaths ( string exe ) : IAbsoluteFilePath>>.IEnumerable
exe string
Résultat IAbsoluteFilePath>>.IEnumerable

GetNamedWmiProcessesByParentId() public méthode

public GetNamedWmiProcessesByParentId ( string name, int pid ) : System.Management.ManagementObjectCollection
name string
pid int
Résultat System.Management.ManagementObjectCollection

GetProcessPath() public méthode

public GetProcessPath ( int processId ) : IAbsoluteFilePath
processId int
Résultat IAbsoluteFilePath

GetRunningProcesses() public méthode

public GetRunningProcesses ( string exe ) : System.Diagnostics.Process[]
exe string
Résultat System.Diagnostics.Process[]

GetWmiProcessesById() public méthode

public GetWmiProcessesById ( int pid ) : System.Management.ManagementObjectCollection
pid int
Résultat System.Management.ManagementObjectCollection

GetWmiProcessesByParentId() public méthode

public GetWmiProcessesByParentId ( int pid ) : System.Management.ManagementObjectCollection
pid int
Résultat System.Management.ManagementObjectCollection

Kill() public méthode

public Kill ( int pid, bool gracefully = false ) : void
pid int
gracefully bool
Résultat void

KillByName() public méthode

public KillByName ( string name, string path = null, bool gracefully = false ) : bool
name string
path string
gracefully bool
Résultat bool

KillNamedProcessChildren() public méthode

public KillNamedProcessChildren ( string name, int pid, bool gracefully = false ) : void
name string
pid int
gracefully bool
Résultat void

KillProcess() public méthode

public KillProcess ( Process p, bool gracefully = false ) : void
p System.Diagnostics.Process
gracefully bool
Résultat void

KillProcessChildren() public méthode

public KillProcessChildren ( int pid, bool gracefully = false ) : void
pid int
gracefully bool
Résultat void

KillProcessInclChildren() public méthode

public KillProcessInclChildren ( int pid, bool gracefully = false ) : void
pid int
gracefully bool
Résultat void

Running() public méthode

public Running ( string exe ) : bool
exe string
Résultat bool

SetAffinity() public méthode

public SetAffinity ( Process process, IEnumerable usedProcessors ) : void
process System.Diagnostics.Process
usedProcessors IEnumerable
Résultat void

WaitForExit() public méthode

public WaitForExit ( string procName, int timeoutSeconds = int.MaxValue ) : void
procName string
timeoutSeconds int
Résultat void

WaitForExitALittleMore() public méthode

public WaitForExitALittleMore ( string procName, int timeoutSeconds = int.MaxValue ) : Task
procName string
timeoutSeconds int
Résultat Task