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 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(); }