Skip to content

Proposal: Process Exited event fired with process exit type #27512

@hez2010

Description

@hez2010

Currently a process object Exited event will be fired with parameter object and EventArgs. But we don't know whether the process exited normally or not.

So I hope that the Exited event can attach a property into args which indicated the process exit type(normally exit or abnormally exit).

var a = new Process();
a.Exited += (obj, args) => {
    switch (args.ExitType)
    {
    case ProcessExitType.Normally:
        ....
        break;
    case ProcessExitType.Abnormally
        ....
        break;
    }
}
.....

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions