Exemple #1
0
        public void Expire(string id)
        {
            if (m_LogLevel >= 2)
            {
                m_log.DebugFormat("[FLOTSAM ASSET CACHE]: Expiring Asset {0}", id);
            }

            try
            {
                if (m_FileCacheEnabled)
                {
                    string filename = GetFileName(id);
                    if (File.Exists(filename))
                    {
                        File.Delete(filename);
                    }
                }

                if (m_MemoryCacheEnabled)
                {
                    m_MemoryCache.Remove(GetAssetID(id));
                }
            }
            catch (Exception e)
            {
                m_log.WarnFormat(
                    "[FLOTSAM ASSET CACHE]: Failed to expire cached file {0}.  Exception {1} {2}",
                    id, e.Message, e.StackTrace);
            }
        }
        public void OnTeleportLureRequest(UUID lureID, uint teleportFlags, IClientAPI client)
        {
            if (!(client.Scene is Scene))
            {
                return;
            }

//            Scene scene = (Scene)(client.Scene);

            GridInstantMessage im = null;

            if (m_PendingLures.TryGetValue(lureID, out im))
            {
                m_PendingLures.Remove(lureID);
                Lure(client, teleportFlags, im);
            }
            else
            {
                m_log.DebugFormat("[HG LURE MODULE]: pending lure {0} not found", lureID);
            }
        }
 public void InvalidateCache(UUID userID)
 {
     m_accountCache.Remove(userID);
 }
 public void Invalidate(UUID userID)
 {
     m_UUIDCache.Remove(userID);
 }
Exemple #5
0
        public bool LoggedOut(string userID, UUID sessionID, UUID region, Vector3 position, Vector3 lookat)
        {
            m_Infos.Remove(userID);

            return(m_RemoteConnector.LoggedOut(userID, sessionID, region, position, lookat));
        }