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:
1 parent
0eb9022803
commit
263f438501
2 files changed
+15
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user