mirror of
https://github.com/aphrody-labs/WSL.git
synced 2026-10-17 12:45:55 +00:00
21 lines
511 B
Markdown
21 lines
511 B
Markdown
# ProcessCrashInformation
|
|||
|
|
|
||
|
|
Crash information supplied by the `Session.ProcessCrashed` event.
|
||
|
|
|
||
|
|
```csharp
|
||
|
|
public sealed class ProcessCrashInformation
|
||
|
|
{
|
||
|
|
public string DumpPath { get; }
|
||
|
|
public string ProcessName { get; }
|
||
|
|
public uint Pid { get; }
|
||
|
|
public uint Signal { get; }
|
||
|
|
public DateTimeOffset Timestamp { get; }
|
||
|
|
}
|
||
|
|
```
|
||
|
|
|
||
|
|
Example:
|
||
|
|
|
||
|
|
```csharp
|
||
|
|
session.ProcessCrashed += information =>
|
||
|
|
Console.WriteLine($"{information.ProcessName} ({information.Pid}) crashed at {information.Timestamp}");
|
||
|
|
```
|