OpenSim.Region.CoreModules.Framework.InventoryAccess.HGAssetMapper.FetchAsset C# (CSharp) Метод

FetchAsset() публичный Метод

public FetchAsset ( string url, UUID assetID ) : OpenSim.Framework.AssetBase
url string
assetID UUID
Результат OpenSim.Framework.AssetBase
        public AssetBase FetchAsset(string url, UUID assetID)
        {
            AssetBase asset = m_scene.AssetService.Get(url + "/" + assetID.ToString());

            if (asset != null)
            {
                m_log.DebugFormat("[HG ASSET MAPPER]: Copied asset {0} from {1} to local asset server. ", asset.ID, url);
                return asset;
            }
            return null;
        }

Usage Example

Пример #1
0
 protected override AssetBase GetAsset(UUID uuid)
 {
     if (string.Empty == m_assetServerURL)
     {
         return(m_assetCache.Get(uuid.ToString()));
     }
     else
     {
         return(m_assetMapper.FetchAsset(m_assetServerURL, uuid));
     }
 }