mirror of
https://github.com/aphrody-labs/WSL.git
synced 2026-10-15 06:09:04 +00:00
* Run the documentation pipeline when doc/ is edited + various rendering fixes * Fix inverted condition
356 B
356 B
SessionTerminationReason
Session::OnTerminated converts WslcSessionTerminationReason directly to the WinRT enum.
Underlying C values:
Unknown = 0Shutdown = 1Crashed = 2
session.Terminated([](SessionTerminationReason reason)
{
if (reason == static_cast<SessionTerminationReason>(2))
{
// crashed
}
});