From 17e43dcc0f32cbdb030e20495dc179a6f8c3ef09 Mon Sep 17 00:00:00 2001 From: Charles Krinke Date: Thu, 6 Nov 2008 19:27:18 +0000 Subject: 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. --- OpenSim/Framework/Communications/Cache/AssetCache.cs | 5 +++++ OpenSim/Framework/Communications/Cache/AssetServerBase.cs | 5 +++++ 2 files changed, 10 insertions(+) (limited to 'OpenSim/Framework/Communications') diff --git a/OpenSim/Framework/Communications/Cache/AssetCache.cs b/OpenSim/Framework/Communications/Cache/AssetCache.cs index 5c8fddc..dfdb0e7 100644 --- a/OpenSim/Framework/Communications/Cache/AssetCache.cs +++ b/OpenSim/Framework/Communications/Cache/AssetCache.cs @@ -85,6 +85,11 @@ namespace OpenSim.Framework.Communications.Cache /// private readonly IAssetServer m_assetServer; + public IAssetServer AssetServer + { + get { return m_assetServer; } + } + /// /// Report statistical data. /// diff --git a/OpenSim/Framework/Communications/Cache/AssetServerBase.cs b/OpenSim/Framework/Communications/Cache/AssetServerBase.cs index 9f4f480..a289fb7 100644 --- a/OpenSim/Framework/Communications/Cache/AssetServerBase.cs +++ b/OpenSim/Framework/Communications/Cache/AssetServerBase.cs @@ -45,6 +45,11 @@ namespace OpenSim.Framework.Communications.Cache protected Thread m_localAssetServerThread; protected IAssetProviderPlugin m_assetProvider; + public IAssetProviderPlugin AssetProviderPlugin + { + get { return m_assetProvider; } + } + // Temporarily hardcoded - should be a plugin protected IAssetLoader assetLoader = new AssetLoaderFileSystem(); -- cgit v1.1