public override void Process(CmdTrigger <AuthServerCmdArgs> trigger) { var open = trigger.Text.NextBool() | !IPCServiceHost.IsOpen; if (open) { if (IPCServiceHost.IsOpen) { trigger.Reply("IPC Service already running - You need to close it before being able to re-open it."); } else { IPCServiceHost.StartService(); trigger.Reply("Done."); } } else { if (!IPCServiceHost.IsOpen) { trigger.Reply("IPC Service is already closed."); } else { IPCServiceHost.StopService(); trigger.Reply("Done."); } } }
public override void Stop() { // TODO tobz : add the ability to register cleanup stuff along with initialiation stuff IPCServiceHost.StopService(); base.Stop(); }
/// <summary> /// Do necessary cleanup /// </summary> protected override void OnShutdown() { if (AuthServerConfiguration.Instance.AutoSave) { // save config AuthServerConfiguration.Instance.Save(true, true); } Log.Info("Initiating Shutdown..."); IPCServiceHost.StopService(); Log.Info("Shutting down..."); }
public override void Process(CmdTrigger <AuthServerCmdArgs> trigger) { if (!IPCServiceHost.IsOpen) { trigger.Reply("IPC Service is already closed."); } else { IPCServiceHost.StopService(); trigger.Reply("Done."); } }
public override void Process(CmdTrigger <AuthServerCmdArgs> trigger) { if (IPCServiceHost.IsOpen) { trigger.Reply("IPC Service is already running - You need to close it before being able to re-open it."); } else { IPCServiceHost.StartService(); trigger.Reply("Done."); } }
/// <summary> /// Starts the authentication server. /// </summary> public override void Start() { base.Start(); if (_running) { try { IPCServiceHost.StartService(); } catch (AddressAlreadyInUseException) { Log.Fatal(resources.AuthServiceAlreadyListening); Stop(); } } }
/// <summary> /// Starts up the realm server. /// </summary> public static void Start() { RealmServer.Instance.Start(); IPCServiceHost.StartService(); }
/// <summary>Starts up the realm server.</summary> public static void Start() { ServerApp <WCell.RealmServer.RealmServer> .Instance.Start(); IPCServiceHost.StartService(); }