Esempio n. 1
0
            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.");
                    }
                }
            }
Esempio n. 2
0
        public override void Stop()
        {
            // TODO tobz : add the ability to register cleanup stuff along with initialiation stuff

            IPCServiceHost.StopService();

            base.Stop();
        }
Esempio n. 3
0
        /// <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...");
        }
Esempio n. 4
0
 public override void Process(CmdTrigger <AuthServerCmdArgs> trigger)
 {
     if (!IPCServiceHost.IsOpen)
     {
         trigger.Reply("IPC Service is already closed.");
     }
     else
     {
         IPCServiceHost.StopService();
         trigger.Reply("Done.");
     }
 }
Esempio n. 5
0
 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.");
     }
 }
Esempio n. 6
0
 /// <summary>
 /// Starts the authentication server.
 /// </summary>
 public override void Start()
 {
     base.Start();
     if (_running)
     {
         try
         {
             IPCServiceHost.StartService();
         }
         catch (AddressAlreadyInUseException)
         {
             Log.Fatal(resources.AuthServiceAlreadyListening);
             Stop();
         }
     }
 }
Esempio n. 7
0
 /// <summary>
 /// Starts up the realm server.
 /// </summary>
 public static void Start()
 {
     RealmServer.Instance.Start();
     IPCServiceHost.StartService();
 }
Esempio n. 8
0
        /// <summary>Starts up the realm server.</summary>
        public static void Start()
        {
            ServerApp <WCell.RealmServer.RealmServer> .Instance.Start();

            IPCServiceHost.StartService();
        }