Ejemplo n.º 1
0
        //calling the method that returns true if the service is running
        public static bool CheckIfServiceIsAlive()
        {
            bool response = false;

            try
            {
                IMakaoGameClientService proxy = factory.CreateChannel();
                bool proxyResponse            = proxy.CheckIfServiceIsWorking();

                response = proxyResponse & !clientServiceNotStarted;
            }
            catch (Exception ex)
            {
                var logger = NLog.LogManager.GetCurrentClassLogger();
                logger.Info("MakaoGameClientService is not running: " + ex.Message);
            }
            return(response);
        }
Ejemplo n.º 2
0
        //method for checking aliveness of one player
        private void CheckAlivenessOfPlayer(IMakaoGameClientService proxy)
        {
            bool alive = proxy.CheckIfServiceIsWorking();

            AlivenessList.Add(alive);
        }