示例#1
0
文件: NCache.cs 项目: nonomal/NCache
        /// <summary>
        /// This function is called by CacheStoppedCallback
        /// </summary>
        public void OnCacheStopped(string cacheId, EventContext eventContext)
        {
            //muds:
            //first of all fire the CacheStoppedCallback for the remote client.
            try
            {
                if (this._cacheStoppedEventRegistered)
                {
                    CacheStopped();
                }
            }
            catch (Exception e)
            {
                if (SocketServer.Logger.IsErrorLogsEnabled)
                {
                    SocketServer.Logger.NCacheLog.Error(_cacheserver + ".OnCacheStopped", e.ToString());
                }
            }

            //now break the connection of the socket server with the client.
            if (_client != null)
            {
                _client.OnCacheStopped(cacheId);
            }
        }
示例#2
0
文件: NCache.cs 项目: yaobos/NCache
 /// <summary>
 /// This function is called by CacheStoppedCallback
 /// </summary>
 public void OnCacheStopped(string cacheId, EventContext eventContext)
 {
     //break the connection of the socket server with the client.
     if (_client != null)
     {
         _client.OnCacheStopped(cacheId);
     }
 }