private static void OnCustomNamedPipeServerEnded(object sender, ListenerEndedEventArgs args) { if (args.RestartListener && sender is RemoteSessionNamedPipeServer server) { CreateCustomNamedPipeServer(server.PipeName); } }
private static void OnIPCNamedPipeServerEnded(object sender, ListenerEndedEventArgs args) { if (args.RestartListener) { CreateIPCNamedPipeServerSingleton(); } }