Example #1
0
        private bool VersionIsEqual()
        {
            lock (_Mutex)
            {
                IAllyService kuaFuService = GetKuaFuService(true);
                if (null == kuaFuService)
                {
                    return(false);
                }

                long oldVersion = _unionAllyVersion;
                _unionAllyVersion = kuaFuService.UnionAllyVersion(_ClientInfo.ServerId);
                return(_unionAllyVersion == oldVersion && _unionAllyVersion > 0);
            }
        }
Example #2
0
        private bool VersionIsEqual()
        {
            bool result;

            lock (this._Mutex)
            {
                IAllyService kuaFuService = this.GetKuaFuService(true);
                if (null == kuaFuService)
                {
                    result = false;
                }
                else
                {
                    long oldVersion = this._unionAllyVersion;
                    this._unionAllyVersion = kuaFuService.UnionAllyVersion(this._ClientInfo.ServerId);
                    result = (this._unionAllyVersion == oldVersion && this._unionAllyVersion > 0L);
                }
            }
            return(result);
        }