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 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. 3
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. 4
0
 /// <summary>
 /// Starts up the realm server.
 /// </summary>
 public static void Start()
 {
     RealmServer.Instance.Start();
     IPCServiceHost.StartService();
 }
Esempio n. 5
0
        /// <summary>Starts up the realm server.</summary>
        public static void Start()
        {
            ServerApp <WCell.RealmServer.RealmServer> .Instance.Start();

            IPCServiceHost.StartService();
        }