2026-06-19 12:06:50 +02:00
|
|
|
using ITNexusAgent.UI;
|
|
|
|
|
|
|
|
|
|
namespace ITNexusAgent;
|
|
|
|
|
|
|
|
|
|
// Läuft als User-Prozess (via SessionSpawner), zeigt dauerhaftes "Bildschirm wird übertragen"-Overlay
|
|
|
|
|
// solange RDP-Session aktiv ist. User kann selbst trennen (TCP-Signal an Service).
|
|
|
|
|
public static class IndicatorModeRunner
|
|
|
|
|
{
|
2026-06-26 13:27:17 +02:00
|
|
|
public static void Run(string portStr, string secret)
|
2026-06-19 12:06:50 +02:00
|
|
|
{
|
|
|
|
|
if (!int.TryParse(portStr, out var port) || port <= 0) return;
|
|
|
|
|
|
|
|
|
|
var app = new System.Windows.Application();
|
|
|
|
|
app.ShutdownMode = System.Windows.ShutdownMode.OnMainWindowClose;
|
|
|
|
|
|
2026-06-26 13:27:17 +02:00
|
|
|
var win = new RdpActiveIndicatorWindow(port, secret);
|
2026-06-19 12:06:50 +02:00
|
|
|
win.Show();
|
|
|
|
|
app.Run();
|
|
|
|
|
}
|
|
|
|
|
}
|