Closed Tyrrrz closed 5 years ago
Allow commands to handle execution interrupts to perform last chance cleanups before terminating
Idea: when Ctrl+C is called, cast the command to IDisposable and call IDisposable.Dispose() if it's implemented, right before killing the process.
IDisposable
IDisposable.Dispose()
Allow commands to handle execution interrupts to perform last chance cleanups before terminating