예제 #1
0
        private bool?_internalConnectionState       = null; // where [null] - initial state, [true/false] - concrete state

        public ZConnection()
        {
            _userInfoParser = ZParsersFactory.CreateUserInfoParser();
            _logger         = ZLogger.Instance;
            _pingTimer      = new Timer(PING_INTERVAL)
            {
                Enabled = false, AutoReset = true
            };

            _pingTimer.Elapsed += _OnPingTimerElapsedCallback;

            // track client connection state
            ZRouter.Initialize();
            ZRouter.ConnectionChanged += _OnClientConnectionStateChangedCallback;
        }
예제 #2
0
 public ZStatsService()
 {
     _parser = ZParsersFactory.CreateStatsInfoParser();
     _logger = ZLogger.Instance;
 }
예제 #3
0
 public ZInstalledGamesService()
 {
     _installedGamesParser = ZParsersFactory.CreateInstalledGamesInfoParser();
     _logger = ZLogger.Instance;
 }