aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/IAssetCache.cs
diff options
context:
space:
mode:
authorDiva Canto2009-08-10 07:13:13 -0700
committerDiva Canto2009-08-10 07:13:13 -0700
commit024755d8b7c96fc9a14b6ebbe40765533b685d94 (patch)
treeab4c3af4de5cf77e011b90a48b8cd90d5b5bfe8a /OpenSim/Framework/IAssetCache.cs
parentMore clean up from asset cache legacy. None of these classes are used anymore. (diff)
downloadopensim-SC_OLD-024755d8b7c96fc9a14b6ebbe40765533b685d94.zip
opensim-SC_OLD-024755d8b7c96fc9a14b6ebbe40765533b685d94.tar.gz
opensim-SC_OLD-024755d8b7c96fc9a14b6ebbe40765533b685d94.tar.bz2
opensim-SC_OLD-024755d8b7c96fc9a14b6ebbe40765533b685d94.tar.xz
Slowly working my way towards the elimination of IAssetServer and IAssetCache.
Diffstat (limited to 'OpenSim/Framework/IAssetCache.cs')
-rw-r--r--OpenSim/Framework/IAssetCache.cs24
1 files changed, 3 insertions, 21 deletions
diff --git a/OpenSim/Framework/IAssetCache.cs b/OpenSim/Framework/IAssetCache.cs
index 201504b..751fdd5 100644
--- a/OpenSim/Framework/IAssetCache.cs
+++ b/OpenSim/Framework/IAssetCache.cs
@@ -35,14 +35,13 @@ namespace OpenSim.Framework
35 /// <summary> 35 /// <summary>
36 /// Interface to the local asset cache. This is the mechanism through which assets can be added and requested. 36 /// Interface to the local asset cache. This is the mechanism through which assets can be added and requested.
37 /// </summary> 37 /// </summary>
38 public interface IAssetCache : IAssetReceiver, IPlugin 38 public interface IAssetCache : IPlugin
39 { 39 {
40 /// <value> 40 /// <value>
41 /// The 'server' from which assets can be requested and to which assets are persisted. 41 /// The 'server' from which assets can be requested and to which assets are persisted.
42 /// </value> 42 /// </value>
43 IAssetServer AssetServer { get; } 43
44 44 void Initialise(ConfigSettings cs);
45 void Initialise(ConfigSettings cs, IAssetServer server);
46 45
47 /// <summary> 46 /// <summary>
48 /// Report statistical data to the log. 47 /// Report statistical data to the log.
@@ -112,21 +111,4 @@ namespace OpenSim.Framework
112 void AddAssetRequest(IClientAPI userInfo, TransferRequestPacket transferRequest); 111 void AddAssetRequest(IClientAPI userInfo, TransferRequestPacket transferRequest);
113 } 112 }
114 113
115 public class AssetCachePluginInitialiser : PluginInitialiserBase
116 {
117 private ConfigSettings config;
118 private IAssetServer server;
119
120 public AssetCachePluginInitialiser (ConfigSettings p_sv, IAssetServer p_as)
121 {
122 config = p_sv;
123 server = p_as;
124 }
125 public override void Initialise (IPlugin plugin)
126 {
127 IAssetCache p = plugin as IAssetCache;
128 p.Initialise (config, server);
129 }
130 }
131
132} 114}