Example #1
0
        private int GetWorldServerID()
        {
            int worldServerID = _owsInstanceLauncherDataRepository.GetWorldServerID();

            if (worldServerID < 1)
            {
                worldServerID = StartInstanceLauncherRequest();
                _owsInstanceLauncherDataRepository.SetWorldServerID(worldServerID);
            }

            return(worldServerID);
        }
Example #2
0
        public void DoWork()
        {
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("Server Health Monitoring is checking for broken Zone Server Instances...");
            Console.ForegroundColor = ConsoleColor.White;

            int worldServerID = _owsInstanceLauncherDataRepository.GetWorldServerID();

            if (worldServerID < 1)
            {
                Console.ForegroundColor = ConsoleColor.Yellow;
                Console.WriteLine("Server Health Monitoring is waiting for a valid World Server ID...");
                Console.ForegroundColor = ConsoleColor.White;

                return;
            }

            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("Server Health Monitoring is getting a list of Zone Server Instances...");
            Console.ForegroundColor = ConsoleColor.White;

            //Get a list of ZoneInstances from api/Instance/GetZoneInstancesForWorldServer
            List <GetZoneInstancesForWorldServer> zoneInstances = GetZoneInstancesForWorldServer(worldServerID);
        }