public bool RedisExistsAsset(string id)
        {
            bool success = RedisEnsureConnection((conn) => conn.Exists(id));

            if (!success)
            {
                success = m_assetService.ExistsAsset(UUID.Parse(id));
            }
            return(success);
        }
        public bool FileExistsAsset(string id)
        {
            bool success = File.Exists(GetPathForID(id));

            if (!success)
            {
                success = m_assetService.ExistsAsset(UUID.Parse(id));
            }
            return(success);
        }
예제 #3
0
        public virtual bool GetExists(string id)
        {
            if (m_doRemoteOnly)
            {
                object remoteValue = DoRemoteByURL("AssetServerURI", id);
                return(remoteValue != null ? (bool)remoteValue : false);
            }

            return(m_database.ExistsAsset(UUID.Parse(id)));
        }
예제 #4
0
        public bool GetExists(string id)
        {
            UUID assetID;

            if (!UUID.TryParse(id, out assetID))
            {
                return(false);
            }

            return(m_Database.ExistsAsset(assetID));
        }
예제 #5
0
        public virtual bool GetExists(string id)
        {
            object remoteValue = DoRemote(id);

            if (remoteValue != null || m_doRemoteOnly)
            {
                return(remoteValue == null ? false : (bool)remoteValue);
            }

            return(m_database.ExistsAsset(UUID.Parse(id)));
        }
예제 #6
0
 public virtual bool GetExists(string id)
 {
     return(m_database.ExistsAsset(UUID.Parse(id)));
 }