diff options
author | Melanie | 2010-04-13 04:36:08 +0100 |
---|---|---|
committer | Melanie | 2010-04-13 04:36:08 +0100 |
commit | 9920e219dd4a98d1ac62bfa4aa4679d50aa32b8f (patch) | |
tree | 0b57576deba41ef22c8fc0b29e6f2b92557fe3b0 /OpenSim/Services/Connectors/Asset/HGAssetServiceConnector.cs | |
parent | Merge branch 'careminster' into careminster-presence-refactor (diff) | |
parent | Merge branch '0.6.9-post-fixes' into careminster (diff) | |
download | opensim-SC-9920e219dd4a98d1ac62bfa4aa4679d50aa32b8f.zip opensim-SC-9920e219dd4a98d1ac62bfa4aa4679d50aa32b8f.tar.gz opensim-SC-9920e219dd4a98d1ac62bfa4aa4679d50aa32b8f.tar.bz2 opensim-SC-9920e219dd4a98d1ac62bfa4aa4679d50aa32b8f.tar.xz |
Merge branch 'careminster' into careminster-presence-refactor
Diffstat (limited to 'OpenSim/Services/Connectors/Asset/HGAssetServiceConnector.cs')
-rw-r--r-- | OpenSim/Services/Connectors/Asset/HGAssetServiceConnector.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/OpenSim/Services/Connectors/Asset/HGAssetServiceConnector.cs b/OpenSim/Services/Connectors/Asset/HGAssetServiceConnector.cs index 677169d..34df54a 100644 --- a/OpenSim/Services/Connectors/Asset/HGAssetServiceConnector.cs +++ b/OpenSim/Services/Connectors/Asset/HGAssetServiceConnector.cs | |||
@@ -116,6 +116,20 @@ namespace OpenSim.Services.Connectors | |||
116 | return null; | 116 | return null; |
117 | } | 117 | } |
118 | 118 | ||
119 | public AssetBase GetCached(string id) | ||
120 | { | ||
121 | string url = string.Empty; | ||
122 | string assetID = string.Empty; | ||
123 | |||
124 | if (StringToUrlAndAssetID(id, out url, out assetID)) | ||
125 | { | ||
126 | IAssetService connector = GetConnector(url); | ||
127 | return connector.GetCached(assetID); | ||
128 | } | ||
129 | |||
130 | return null; | ||
131 | } | ||
132 | |||
119 | public AssetMetadata GetMetadata(string id) | 133 | public AssetMetadata GetMetadata(string id) |
120 | { | 134 | { |
121 | string url = string.Empty; | 135 | string url = string.Empty; |