a few changes to get assets

This commit is contained in:
UbitUmarov
2021-07-16 03:08:31 +01:00
parent cdcf468e5c
commit a01046c24f
12 changed files with 244 additions and 22 deletions

View File

@@ -206,5 +206,9 @@ namespace OpenSim.Services.AssetService
return m_Database.Delete(id);
}
public void Get(string id, string ForeignAssetService, bool StoreOnLocalGrid, SimpleAssetRetrieved callBack)
{
}
}
}

View File

@@ -227,5 +227,10 @@ namespace OpenSim.Services.AssetService
Store(asset);
m_ChainedAssetService.Delete(asset.ID);
}
public void Get(string id, string ForeignAssetService, bool StoreOnLocalGrid, SimpleAssetRetrieved callBack)
{
}
}
}

View File

@@ -427,5 +427,10 @@ namespace OpenSim.Services.Connectors
string uri = m_ServerURI + "/assets/" + id;
return SynchronousRestObjectRequester.MakeRequest<int, bool>("DELETE", uri, 0, m_Auth);
}
public void Get(string id, string ForeignAssetService, bool StoreOnLocalGrid, SimpleAssetRetrieved callBack)
{
return;
}
}
}

View File

@@ -91,6 +91,7 @@ namespace OpenSim.Services.Connectors
return connector.Get(id);
}
public AssetBase GetCached(string id)
{
string url = string.Empty;
@@ -140,6 +141,11 @@ namespace OpenSim.Services.Connectors
return false;
}
public void Get(string id, string ForeignAssetService, bool StoreOnLocalGrid, SimpleAssetRetrieved callBack)
{
return;
}
private struct AssetAndIndex
{
public UUID assetID;

View File

@@ -834,5 +834,10 @@ namespace OpenSim.Services.FSAssetService
{
return Get(id);
}
public void Get(string id, string ForeignAssetService, bool StoreOnLocalGrid, SimpleAssetRetrieved callBack)
{
return;
}
}
}

View File

@@ -130,6 +130,11 @@ namespace OpenSim.Services.HypergridService
return null;
}
public void Get(string id, string ForeignAssetService, bool StoreOnLocalGrid, SimpleAssetRetrieved callBack)
{
return;
}
public AssetMetadata GetMetadata(string id)
{
AssetMetadata meta = m_assetService.GetMetadata(id);

View File

@@ -30,7 +30,8 @@ using OpenSim.Framework;
namespace OpenSim.Services.Interfaces
{
public delegate void AssetRetrieved(string id, Object sender, AssetBase asset);
public delegate void AssetRetrieved(string id, object sender, AssetBase asset);
public delegate void SimpleAssetRetrieved(AssetBase asset);
public interface IAssetService
{
@@ -76,6 +77,7 @@ namespace OpenSim.Services.Interfaces
/// </param>
/// <returns>True if the id was parseable, false otherwise</returns>
bool Get(string id, Object sender, AssetRetrieved handler);
void Get(string id, string ForeignAssetService, bool StoreOnLocalGrid, SimpleAssetRetrieved callBack);
/// <summary>
/// Check if assets exist in the database.