From b618802e533ce2922e1e1a2f5d2b35b891e9ae88 Mon Sep 17 00:00:00 2001 From: MW Date: Sat, 16 Feb 2008 13:01:42 +0000 Subject: Moved the AgentAssetTransactionsManager (and AgentAssetTransactions) out of CommsManager and into a module (AgentAgentTransactionModule), still needs cleaning up though. But its one more thing out of the CommsManager. One day we will kill the CommsManager! --- OpenSim/Region/Environment/Scenes/Scene.Inventory.cs | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'OpenSim/Region/Environment/Scenes/Scene.Inventory.cs') diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs index 952b039..2212216 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs @@ -36,6 +36,7 @@ using OpenSim.Framework.Console; using System.IO; using System.Text; using System.Xml; +using OpenSim.Region.Environment.Interfaces; namespace OpenSim.Region.Environment.Scenes @@ -266,8 +267,12 @@ namespace OpenSim.Region.Environment.Scenes } else { - CommsManager.TransactionsManager.HandleItemUpdateFromTransaction( - remoteClient, transactionID, item); + IAgentAssetTransactions agentTransactions = this.RequestModuleInterface(); + if (agentTransactions != null) + { + agentTransactions.HandleItemUpdateFromTransaction( + remoteClient, transactionID, item); + } } } else @@ -459,9 +464,15 @@ namespace OpenSim.Region.Environment.Scenes } else { - CommsManager.TransactionsManager.HandleItemCreationFromTransaction( + IAgentAssetTransactions agentTransactions = this.RequestModuleInterface(); + if (agentTransactions != null) + { + agentTransactions.HandleItemCreationFromTransaction( remoteClient, transactionID, folderID, callbackID, description, - name, invType, assetType, wearableType, nextOwnerMask); + name, invType, assetType, wearableType, nextOwnerMask); + } + + } } -- cgit v1.1