C# Класс Kudu.Core.Infrastructure.ProcessExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
GetChildren ( this process, ITracer tracer, bool recursive = true ) : IEnumerable
GetCommandLine ( this process ) : string
GetDescription ( string>.Dictionary environment ) : string
GetEnvironmentVariables ( this process ) : string>.Dictionary
GetIsScmSite ( string>.Dictionary environment ) : bool
GetIsWebJob ( string>.Dictionary environment ) : bool
GetParentId ( this process, ITracer tracer ) : int

Get parent id.

GetParentProcess ( this process, ITracer tracer ) : Process

Get parent process.

GetTotalProcessorTime ( this process, ITracer tracer ) : System.TimeSpan

Calculates the sum of TotalProcessorTime for the current process and all its children.

GetUserName ( this process ) : string
Kill ( this process, bool includesChildren, ITracer tracer ) : void
MiniDump ( this process, string dumpFile, MINIDUMP_TYPE dumpType ) : void
Start ( this process, ITracer tracer, Stream output, Stream error, Stream input = null, IdleManager idleManager = null ) : Task
TryGetEnvironmentVariables ( this process, string>.Dictionary &environmentVariables ) : bool

Приватные методы

Метод Описание
CopyStreamAsync ( Stream from, Stream to, Kudu.Core.Infrastructure.IdleManager idleManager, CancellationToken cancellationToken, bool closeAfterCopy = false ) : Task
EnvToDictionary ( byte env ) : string>.Dictionary
FlushAllAsync ( IProcess process, ITracer tracer, Kudu.Core.Infrastructure.IdleManager idleManager, CancellationTokenSource cancellationTokenSource, IEnumerable tasks ) : Task
GetChildren ( int pid, Dictionary tree, bool recursive ) : IEnumerable
GetCommandLineCore ( IntPtr hProcess ) : string
GetEnvironmentVariablesCore ( IntPtr hProcess ) : string>.Dictionary
GetPeb32 ( IntPtr hProcess ) : IntPtr
GetPeb64 ( IntPtr hProcess ) : IntPtr
GetPebNative ( IntPtr hProcess ) : IntPtr
GetPenv ( IntPtr hProcess ) : IntPtr
GetProcessBitness ( IntPtr hProcess ) : int
GetProcessTree ( ITracer tracer ) : List>.Dictionary
HasReadAccess ( IntPtr hProcess, IntPtr address, int &size ) : bool
SafeCloseStream ( Stream stream ) : void
SafeGetProcessById ( int pid ) : Process
SafeKillProcess ( Process process, ITracer tracer ) : void
TryGetProcessHandle ( this process, IntPtr &processHandle ) : bool
TryReadIntPtr ( IntPtr hProcess, IntPtr ptr, IntPtr &readPtr ) : bool

Описание методов

GetChildren() публичный статический Метод

public static GetChildren ( this process, ITracer tracer, bool recursive = true ) : IEnumerable
process this
tracer ITracer
recursive bool
Результат IEnumerable

GetCommandLine() публичный статический Метод

public static GetCommandLine ( this process ) : string
process this
Результат string

GetDescription() публичный статический Метод

public static GetDescription ( string>.Dictionary environment ) : string
environment string>.Dictionary
Результат string

GetEnvironmentVariables() публичный статический Метод

public static GetEnvironmentVariables ( this process ) : string>.Dictionary
process this
Результат string>.Dictionary

GetIsScmSite() публичный статический Метод

public static GetIsScmSite ( string>.Dictionary environment ) : bool
environment string>.Dictionary
Результат bool

GetIsWebJob() публичный статический Метод

public static GetIsWebJob ( string>.Dictionary environment ) : bool
environment string>.Dictionary
Результат bool

GetParentId() публичный статический Метод

Get parent id.
public static GetParentId ( this process, ITracer tracer ) : int
process this
tracer ITracer
Результат int

GetParentProcess() публичный статический Метод

Get parent process.
public static GetParentProcess ( this process, ITracer tracer ) : Process
process this
tracer ITracer
Результат System.Diagnostics.Process

GetTotalProcessorTime() публичный статический Метод

Calculates the sum of TotalProcessorTime for the current process and all its children.
public static GetTotalProcessorTime ( this process, ITracer tracer ) : System.TimeSpan
process this
tracer ITracer
Результат System.TimeSpan

GetUserName() публичный статический Метод

public static GetUserName ( this process ) : string
process this
Результат string

Kill() публичный статический Метод

public static Kill ( this process, bool includesChildren, ITracer tracer ) : void
process this
includesChildren bool
tracer ITracer
Результат void

MiniDump() публичный статический Метод

public static MiniDump ( this process, string dumpFile, MINIDUMP_TYPE dumpType ) : void
process this
dumpFile string
dumpType MINIDUMP_TYPE
Результат void

Start() публичный статический Метод

public static Start ( this process, ITracer tracer, Stream output, Stream error, Stream input = null, IdleManager idleManager = null ) : Task
process this
tracer ITracer
output Stream
error Stream
input Stream
idleManager IdleManager
Результат Task

TryGetEnvironmentVariables() публичный статический Метод

public static TryGetEnvironmentVariables ( this process, string>.Dictionary &environmentVariables ) : bool
process this
environmentVariables string>.Dictionary
Результат bool