mirror of
https://github.com/opensim/opensim.git
synced 2026-08-11 03:45:35 +08:00
Connect up the new asset cache and introduce an asynchronous call path
for asset retrieval (full asset only) to ease migration to the new system
This commit is contained in:
@@ -25,10 +25,13 @@
|
||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
using System;
|
||||
using OpenSim.Framework;
|
||||
|
||||
namespace OpenSim.Services.Interfaces
|
||||
{
|
||||
public delegate void AssetRetrieved(string id, Object sender, AssetBase asset);
|
||||
|
||||
public interface IAssetService
|
||||
{
|
||||
// Three different ways to retrieve an asset
|
||||
@@ -37,6 +40,8 @@ namespace OpenSim.Services.Interfaces
|
||||
AssetMetadata GetMetadata(string id);
|
||||
byte[] GetData(string id);
|
||||
|
||||
bool Get(string id, Object sender, AssetRetrieved handler);
|
||||
|
||||
// Creates a new asset
|
||||
// Returns a random ID if none is passed into it
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user