diff options
author | Justin Clarke Casey | 2008-04-22 18:58:09 +0000 |
---|---|---|
committer | Justin Clarke Casey | 2008-04-22 18:58:09 +0000 |
commit | 68c6b6ece3f1f20a81806b08ffd5c73296324d6c (patch) | |
tree | b92ea76ed8d505bf5f7cc3526e921b71e103bbfd /OpenSim/Framework/Communications/Cache/CachedUserInfo.cs | |
parent | * Allow folder renaming to complete after an agent inventory has been receive... (diff) | |
download | opensim-SC_OLD-68c6b6ece3f1f20a81806b08ffd5c73296324d6c.zip opensim-SC_OLD-68c6b6ece3f1f20a81806b08ffd5c73296324d6c.tar.gz opensim-SC_OLD-68c6b6ece3f1f20a81806b08ffd5c73296324d6c.tar.bz2 opensim-SC_OLD-68c6b6ece3f1f20a81806b08ffd5c73296324d6c.tar.xz |
* Replace previous specific inventory callback code with generic alternative
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Framework/Communications/Cache/CachedUserInfo.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs b/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs index 3d7ada3..9a7ce42 100644 --- a/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs +++ b/OpenSim/Framework/Communications/Cache/CachedUserInfo.cs | |||
@@ -332,6 +332,29 @@ namespace OpenSim.Framework.Communications.Cache | |||
332 | /// </summary> | 332 | /// </summary> |
333 | public interface IInventoryRequest | 333 | public interface IInventoryRequest |
334 | { | 334 | { |
335 | /// <summary> | ||
336 | /// This is the method executed once we have received the user's inventory by which the request can be fulfilled. | ||
337 | /// </summary> | ||
335 | void Execute(); | 338 | void Execute(); |
336 | } | 339 | } |
340 | |||
341 | /// <summary> | ||
342 | /// Generic inventory request | ||
343 | /// </summary> | ||
344 | public class InventoryRequest : IInventoryRequest | ||
345 | { | ||
346 | private Delegate m_delegat; | ||
347 | private Object[] m_args; | ||
348 | |||
349 | internal InventoryRequest(Delegate delegat, Object[] args) | ||
350 | { | ||
351 | m_delegat = delegat; | ||
352 | m_args = args; | ||
353 | } | ||
354 | |||
355 | public void Execute() | ||
356 | { | ||
357 | m_delegat.DynamicInvoke(m_args); | ||
358 | } | ||
359 | } | ||
337 | } | 360 | } |