Slowly working my way towards the elimination of IAssetServer and IAssetCache.

This commit is contained in:
Diva Canto
2009-08-10 07:13:13 -07:00
parent a50904a68b
commit 024755d8b7
2 changed files with 6 additions and 122 deletions

View File

@@ -35,14 +35,13 @@ namespace OpenSim.Framework
/// <summary>
/// Interface to the local asset cache. This is the mechanism through which assets can be added and requested.
/// </summary>
public interface IAssetCache : IAssetReceiver, IPlugin
public interface IAssetCache : IPlugin
{
/// <value>
/// The 'server' from which assets can be requested and to which assets are persisted.
/// </value>
IAssetServer AssetServer { get; }
void Initialise(ConfigSettings cs, IAssetServer server);
void Initialise(ConfigSettings cs);
/// <summary>
/// Report statistical data to the log.
@@ -112,21 +111,4 @@ namespace OpenSim.Framework
void AddAssetRequest(IClientAPI userInfo, TransferRequestPacket transferRequest);
}
public class AssetCachePluginInitialiser : PluginInitialiserBase
{
private ConfigSettings config;
private IAssetServer server;
public AssetCachePluginInitialiser (ConfigSettings p_sv, IAssetServer p_as)
{
config = p_sv;
server = p_as;
}
public override void Initialise (IPlugin plugin)
{
IAssetCache p = plugin as IAssetCache;
p.Initialise (config, server);
}
}
}