master
md 19 lines 356 Bytes
Rendered Raw
1 # SessionTerminationReason
2
3 `Session::OnTerminated` converts `WslcSessionTerminationReason` directly to the WinRT enum.
4
5 Underlying C values:
6
7 - `Unknown = 0`
8 - `Shutdown = 1`
9 - `Crashed = 2`
10
11 ```cpp
12 session.Terminated([](SessionTerminationReason reason)
13 {
14 if (reason == static_cast<SessionTerminationReason>(2))
15 {
16 // crashed
17 }
18 });
19 ```