public static void RestartServer() { connector?.Kill(); connector?.netConn?.Kill(); connector = null; StartServer(); }
public static void StartServer() { logger.Trace("Starting UI Vanguard Implementation"); var spec = new NetCoreReceiver(); spec.MessageReceived += OnMessageReceived; spec.Attached = CorruptCore.RtcCore.Attached; connector = new UIConnector(spec); }