Mantis#2566. Thank you kindly, Diva for a patch that:

This patch introduces a couple of read-only properties, 
so that I can grab the asset server plugin from a region 
module. This is needed to set up an http service for 
accessing standalone assets remotely.
0.6.0-stable
Charles Krinke 2008-11-06 19:27:18 +00:00
parent 557c7de2ec
commit 17e43dcc0f
2 changed files with 10 additions and 0 deletions

View File

@ -85,6 +85,11 @@ namespace OpenSim.Framework.Communications.Cache
/// </summary> /// </summary>
private readonly IAssetServer m_assetServer; private readonly IAssetServer m_assetServer;
public IAssetServer AssetServer
{
get { return m_assetServer; }
}
/// <summary> /// <summary>
/// Report statistical data. /// Report statistical data.
/// </summary> /// </summary>

View File

@ -45,6 +45,11 @@ namespace OpenSim.Framework.Communications.Cache
protected Thread m_localAssetServerThread; protected Thread m_localAssetServerThread;
protected IAssetProviderPlugin m_assetProvider; protected IAssetProviderPlugin m_assetProvider;
public IAssetProviderPlugin AssetProviderPlugin
{
get { return m_assetProvider; }
}
// Temporarily hardcoded - should be a plugin // Temporarily hardcoded - should be a plugin
protected IAssetLoader assetLoader = new AssetLoaderFileSystem(); protected IAssetLoader assetLoader = new AssetLoaderFileSystem();