mirror of
https://github.com/opensim/opensim.git
synced 2026-08-13 05:05:43 +08:00
a few changes to get assets
This commit is contained in:
@@ -206,5 +206,9 @@ namespace OpenSim.Services.AssetService
|
||||
|
||||
return m_Database.Delete(id);
|
||||
}
|
||||
|
||||
public void Get(string id, string ForeignAssetService, bool StoreOnLocalGrid, SimpleAssetRetrieved callBack)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -834,5 +834,10 @@ namespace OpenSim.Services.FSAssetService
|
||||
{
|
||||
return Get(id);
|
||||
}
|
||||
|
||||
public void Get(string id, string ForeignAssetService, bool StoreOnLocalGrid, SimpleAssetRetrieved callBack)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user