aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs
diff options
context:
space:
mode:
authorAdam Frisby2008-04-21 07:09:17 +0000
committerAdam Frisby2008-04-21 07:09:17 +0000
commitfef3b3689492dea63693c964bcdbec9f5137eb5e (patch)
tree7791eef001d85d3e1de863a68f26ff9434d062ca /OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs
parent* Terrain Module code has been reformatted to comply with guidelines. (diff)
downloadopensim-SC_OLD-fef3b3689492dea63693c964bcdbec9f5137eb5e.zip
opensim-SC_OLD-fef3b3689492dea63693c964bcdbec9f5137eb5e.tar.gz
opensim-SC_OLD-fef3b3689492dea63693c964bcdbec9f5137eb5e.tar.bz2
opensim-SC_OLD-fef3b3689492dea63693c964bcdbec9f5137eb5e.tar.xz
* Optimised using statements and namespace references across entire project (this took a while to run).
Diffstat (limited to 'OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs')
-rw-r--r--OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs18
1 files changed, 10 insertions, 8 deletions
diff --git a/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs b/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs
index fbe905c..e0167a7 100644
--- a/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs
+++ b/OpenSim/Region/Communications/OGS1/OGS1InventoryService.cs
@@ -27,19 +27,21 @@
27 27
28using System; 28using System;
29using System.Collections.Generic; 29using System.Collections.Generic;
30using System.Net;
31using System.Reflection;
30using libsecondlife; 32using libsecondlife;
33using log4net;
31using OpenSim.Framework; 34using OpenSim.Framework;
32using OpenSim.Framework.Communications; 35using OpenSim.Framework.Communications;
33using OpenSim.Framework.Communications.Cache; 36using OpenSim.Framework.Communications.Cache;
34using OpenSim.Framework.Console;
35using OpenSim.Framework.Servers; 37using OpenSim.Framework.Servers;
36 38
37namespace OpenSim.Region.Communications.OGS1 39namespace OpenSim.Region.Communications.OGS1
38{ 40{
39 public class OGS1InventoryService : IInventoryServices 41 public class OGS1InventoryService : IInventoryServices
40 { 42 {
41 private static readonly log4net.ILog m_log 43 private static readonly ILog m_log
42 = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); 44 = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
43 45
44 private string _inventoryServerUrl; 46 private string _inventoryServerUrl;
45 private Dictionary<LLUUID, InventoryRequest> m_RequestingInventory = new Dictionary<LLUUID, InventoryRequest>(); 47 private Dictionary<LLUUID, InventoryRequest> m_RequestingInventory = new Dictionary<LLUUID, InventoryRequest>();
@@ -71,7 +73,7 @@ namespace OpenSim.Region.Communications.OGS1
71 73
72 requester.BeginPostObject<Guid>(_inventoryServerUrl + "/GetInventory/", userID.UUID); 74 requester.BeginPostObject<Guid>(_inventoryServerUrl + "/GetInventory/", userID.UUID);
73 } 75 }
74 catch (System.Net.WebException e) 76 catch (WebException e)
75 { 77 {
76 m_log.ErrorFormat("[OGS1 INVENTORY SERVICE]: Request inventory operation failed, {0} {1}", 78 m_log.ErrorFormat("[OGS1 INVENTORY SERVICE]: Request inventory operation failed, {0} {1}",
77 e.Source, e.Message); 79 e.Source, e.Message);
@@ -153,7 +155,7 @@ namespace OpenSim.Region.Communications.OGS1
153 SynchronousRestObjectPoster.BeginPostObject<InventoryFolderBase, bool>( 155 SynchronousRestObjectPoster.BeginPostObject<InventoryFolderBase, bool>(
154 "POST", _inventoryServerUrl + "/NewFolder/", folder); 156 "POST", _inventoryServerUrl + "/NewFolder/", folder);
155 } 157 }
156 catch (System.Net.WebException e) 158 catch (WebException e)
157 { 159 {
158 m_log.ErrorFormat("[OGS1 INVENTORY SERVICE]: Add new inventory folder operation failed, {0} {1}", 160 m_log.ErrorFormat("[OGS1 INVENTORY SERVICE]: Add new inventory folder operation failed, {0} {1}",
159 e.Source, e.Message); 161 e.Source, e.Message);
@@ -167,7 +169,7 @@ namespace OpenSim.Region.Communications.OGS1
167 SynchronousRestObjectPoster.BeginPostObject<InventoryFolderBase, bool>( 169 SynchronousRestObjectPoster.BeginPostObject<InventoryFolderBase, bool>(
168 "POST", _inventoryServerUrl + "/MoveFolder/", folder); 170 "POST", _inventoryServerUrl + "/MoveFolder/", folder);
169 } 171 }
170 catch (System.Net.WebException e) 172 catch (WebException e)
171 { 173 {
172 m_log.ErrorFormat("[OGS1 INVENTORY SERVICE]: Move inventory folder operation failed, {0} {1}", 174 m_log.ErrorFormat("[OGS1 INVENTORY SERVICE]: Move inventory folder operation failed, {0} {1}",
173 e.Source, e.Message); 175 e.Source, e.Message);
@@ -181,7 +183,7 @@ namespace OpenSim.Region.Communications.OGS1
181 SynchronousRestObjectPoster.BeginPostObject<InventoryItemBase, bool>( 183 SynchronousRestObjectPoster.BeginPostObject<InventoryItemBase, bool>(
182 "POST", _inventoryServerUrl + "/NewItem/", item); 184 "POST", _inventoryServerUrl + "/NewItem/", item);
183 } 185 }
184 catch (System.Net.WebException e) 186 catch (WebException e)
185 { 187 {
186 m_log.ErrorFormat("[OGS1 INVENTORY SERVICE]: Add new inventory item operation failed, {0} {1}", 188 m_log.ErrorFormat("[OGS1 INVENTORY SERVICE]: Add new inventory item operation failed, {0} {1}",
187 e.Source, e.Message); 189 e.Source, e.Message);
@@ -195,7 +197,7 @@ namespace OpenSim.Region.Communications.OGS1
195 SynchronousRestObjectPoster.BeginPostObject<InventoryItemBase, bool>( 197 SynchronousRestObjectPoster.BeginPostObject<InventoryItemBase, bool>(
196 "POST", _inventoryServerUrl + "/DeleteItem/", item); 198 "POST", _inventoryServerUrl + "/DeleteItem/", item);
197 } 199 }
198 catch (System.Net.WebException e) 200 catch (WebException e)
199 { 201 {
200 m_log.ErrorFormat("[OGS1 INVENTORY SERVICE]: Delete inventory item operation failed, {0} {1}", 202 m_log.ErrorFormat("[OGS1 INVENTORY SERVICE]: Delete inventory item operation failed, {0} {1}",
201 e.Source, e.Message); 203 e.Source, e.Message);