public static bool StopAuth() { if (AuthServ == null) { return(false); } SysCons.LogInfo("Stopping AuthServer.."); AuthServ.Shutdown(); AuthServThread.Abort(); AuthServ = null; return(true); }
public static bool StartAuth() { if (AuthServ != null) { return(false); } AuthServ = new AuthServ(); AuthServThread = new Thread(AuthServ.Run) { IsBackground = true, CurrentCulture = CultureInfo.InvariantCulture }; AuthServThread.Start(); return(true); }