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); }
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))); }
public bool GetExists(string id) { UUID assetID; if (!UUID.TryParse(id, out assetID)) { return(false); } return(m_Database.ExistsAsset(assetID)); }
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))); }
public virtual bool GetExists(string id) { return(m_database.ExistsAsset(UUID.Parse(id))); }