Remote: Ctrl+C Handling im PS-Script + /remote Alias

- CancelKeyPress-Event registrieren → .Cancel() → ReceiveAsync bricht sauber ab
- catch [AggregateException] für CancellationToken in .GetAwaiter().GetResult()
- Event-Handler im finally-Block entfernen
- /remote als Alias für /remote.ps1
This commit is contained in:
Meleki committed 2026-03-11 08:12:56 +01:00
1 parent 0eb9022803
commit 263f438501
2 files changed
+15

No files matched your search

+1
View File
@@ -31,6 +31,7 @@ public static class RemoteEndpoint
// PowerShell-Script ausliefern
app.MapGet("/remote.ps1", (Delegate)ServeScript);
app.MapGet("/remote", (Delegate)ServeScript);
}
private static async Task HandleWebSocket(HttpContext ctx, RemoteConnectionManager mgr)