Commit 53ef3bb
committed
fix(dotnet): Add AOT-safe
- Replace the anonymous `new { sessionId }` with `new SetForegroundSessionRequest(sessionId)`
This fixes the runtime `System.Text.Json` metadata failure when `SetForegroundSessionIdAsync()` is used with source-generated serialization.SetForegroundSessionRequest for SetForegroundSessionIdAsync()
1 parent dd2dcbc commit 53ef3bb
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
942 | 942 | | |
943 | 943 | | |
944 | 944 | | |
945 | | - | |
| 945 | + | |
946 | 946 | | |
947 | 947 | | |
948 | 948 | | |
| |||
1753 | 1753 | | |
1754 | 1754 | | |
1755 | 1755 | | |
| 1756 | + | |
| 1757 | + | |
| 1758 | + | |
1756 | 1759 | | |
1757 | 1760 | | |
1758 | 1761 | | |
| |||
1871 | 1874 | | |
1872 | 1875 | | |
1873 | 1876 | | |
| 1877 | + | |
1874 | 1878 | | |
1875 | 1879 | | |
1876 | 1880 | | |
| |||
0 commit comments