aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Grid/MessagingServer
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/Grid/MessagingServer
parent* Terrain Module code has been reformatted to comply with guidelines. (diff)
downloadopensim-SC-fef3b3689492dea63693c964bcdbec9f5137eb5e.zip
opensim-SC-fef3b3689492dea63693c964bcdbec9f5137eb5e.tar.gz
opensim-SC-fef3b3689492dea63693c964bcdbec9f5137eb5e.tar.bz2
opensim-SC-fef3b3689492dea63693c964bcdbec9f5137eb5e.tar.xz
* Optimised using statements and namespace references across entire project (this took a while to run).
Diffstat (limited to '')
-rw-r--r--OpenSim/Grid/MessagingServer/Main.cs9
-rw-r--r--OpenSim/Grid/MessagingServer/MessageService.cs14
-rw-r--r--OpenSim/Grid/MessagingServer/PresenceInformer.cs13
-rw-r--r--OpenSim/Grid/MessagingServer/UserPresenceData.cs3
-rw-r--r--OpenSim/Grid/MessagingServer/WorkUnitBase.cs4
-rw-r--r--OpenSim/Grid/MessagingServer/WorkUnitPresenceUpdate.cs4
-rw-r--r--OpenSim/Grid/MessagingServer/XMPPHTTPService.cs11
7 files changed, 19 insertions, 39 deletions
diff --git a/OpenSim/Grid/MessagingServer/Main.cs b/OpenSim/Grid/MessagingServer/Main.cs
index b288b33..bf793bf 100644
--- a/OpenSim/Grid/MessagingServer/Main.cs
+++ b/OpenSim/Grid/MessagingServer/Main.cs
@@ -26,11 +26,12 @@
26 */ 26 */
27 27
28using System; 28using System;
29using System.Collections.Generic;
30using System.IO; 29using System.IO;
30using System.Reflection;
31using libsecondlife; 31using libsecondlife;
32using log4net;
33using log4net.Config;
32using OpenSim.Framework; 34using OpenSim.Framework;
33using OpenSim.Framework.Communications.Cache;
34using OpenSim.Framework.Console; 35using OpenSim.Framework.Console;
35using OpenSim.Framework.Servers; 36using OpenSim.Framework.Servers;
36 37
@@ -40,7 +41,7 @@ namespace OpenSim.Grid.MessagingServer
40 /// </summary> 41 /// </summary>
41 public class OpenMessage_Main : BaseOpenSimServer, conscmd_callback 42 public class OpenMessage_Main : BaseOpenSimServer, conscmd_callback
42 { 43 {
43 private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); 44 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
44 45
45 private MessageServerConfig Cfg; 46 private MessageServerConfig Cfg;
46 private MessageService msgsvc; 47 private MessageService msgsvc;
@@ -50,7 +51,7 @@ namespace OpenSim.Grid.MessagingServer
50 [STAThread] 51 [STAThread]
51 public static void Main(string[] args) 52 public static void Main(string[] args)
52 { 53 {
53 log4net.Config.XmlConfigurator.Configure(); 54 XmlConfigurator.Configure();
54 55
55 m_log.Info("Launching MessagingServer..."); 56 m_log.Info("Launching MessagingServer...");
56 57
diff --git a/OpenSim/Grid/MessagingServer/MessageService.cs b/OpenSim/Grid/MessagingServer/MessageService.cs
index 1b16cb2..d824d21 100644
--- a/OpenSim/Grid/MessagingServer/MessageService.cs
+++ b/OpenSim/Grid/MessagingServer/MessageService.cs
@@ -26,25 +26,23 @@
26 */ 26 */
27 27
28using System; 28using System;
29using System.Net;
30using System.Net.Sockets;
31using System.Collections; 29using System.Collections;
32using System.Collections.Generic; 30using System.Collections.Generic;
31using System.Net;
32using System.Reflection;
33using System.Threading; 33using System.Threading;
34//using System.Xml;
35using libsecondlife; 34using libsecondlife;
35using log4net;
36using Nwc.XmlRpc; 36using Nwc.XmlRpc;
37using OpenSim.Framework;
38using OpenSim.Framework.Console;
39using OpenSim.Data; 37using OpenSim.Data;
40using OpenSim.Framework.Servers; 38using OpenSim.Framework;
41using FriendRights = libsecondlife.FriendRights; 39//using System.Xml;
42 40
43namespace OpenSim.Grid.MessagingServer 41namespace OpenSim.Grid.MessagingServer
44{ 42{
45 public class MessageService 43 public class MessageService
46 { 44 {
47 private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); 45 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
48 46
49 private MessageServerConfig m_cfg; 47 private MessageServerConfig m_cfg;
50 48
diff --git a/OpenSim/Grid/MessagingServer/PresenceInformer.cs b/OpenSim/Grid/MessagingServer/PresenceInformer.cs
index f270bbe..59d0e13 100644
--- a/OpenSim/Grid/MessagingServer/PresenceInformer.cs
+++ b/OpenSim/Grid/MessagingServer/PresenceInformer.cs
@@ -25,18 +25,11 @@
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28using System;
29using System.Collections; 28using System.Collections;
30using System.Collections.Generic; 29using System.Reflection;
31using System.Net; 30using log4net;
32using System.Net.Sockets;
33using System.Text;
34using libsecondlife;
35using Nwc.XmlRpc; 31using Nwc.XmlRpc;
36using OpenSim.Framework;
37using OpenSim.Framework.Console;
38using OpenSim.Data; 32using OpenSim.Data;
39using OpenSim.Framework.Servers;
40 33
41namespace OpenSim.Grid.MessagingServer 34namespace OpenSim.Grid.MessagingServer
42{ 35{
@@ -44,7 +37,7 @@ namespace OpenSim.Grid.MessagingServer
44 { 37 {
45 public UserPresenceData presence1 = null; 38 public UserPresenceData presence1 = null;
46 public UserPresenceData presence2 = null; 39 public UserPresenceData presence2 = null;
47 private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); 40 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
48 41
49 public PresenceInformer() 42 public PresenceInformer()
50 { 43 {
diff --git a/OpenSim/Grid/MessagingServer/UserPresenceData.cs b/OpenSim/Grid/MessagingServer/UserPresenceData.cs
index 4390903..7188201 100644
--- a/OpenSim/Grid/MessagingServer/UserPresenceData.cs
+++ b/OpenSim/Grid/MessagingServer/UserPresenceData.cs
@@ -26,11 +26,10 @@
26 */ 26 */
27 27
28using System; 28using System;
29using System.Collections;
30using System.Collections.Generic; 29using System.Collections.Generic;
31using libsecondlife; 30using libsecondlife;
32using OpenSim.Framework;
33using OpenSim.Data; 31using OpenSim.Data;
32using OpenSim.Framework;
34 33
35namespace OpenSim.Grid.MessagingServer 34namespace OpenSim.Grid.MessagingServer
36{ 35{
diff --git a/OpenSim/Grid/MessagingServer/WorkUnitBase.cs b/OpenSim/Grid/MessagingServer/WorkUnitBase.cs
index c4e6240..d25f044 100644
--- a/OpenSim/Grid/MessagingServer/WorkUnitBase.cs
+++ b/OpenSim/Grid/MessagingServer/WorkUnitBase.cs
@@ -25,10 +25,6 @@
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28using System;
29using System.Collections.Generic;
30using System.Text;
31
32namespace OpenSim.Grid.MessagingServer 28namespace OpenSim.Grid.MessagingServer
33{ 29{
34 public class WorkUnitBase 30 public class WorkUnitBase
diff --git a/OpenSim/Grid/MessagingServer/WorkUnitPresenceUpdate.cs b/OpenSim/Grid/MessagingServer/WorkUnitPresenceUpdate.cs
index c54b4d9..c31f0c7 100644
--- a/OpenSim/Grid/MessagingServer/WorkUnitPresenceUpdate.cs
+++ b/OpenSim/Grid/MessagingServer/WorkUnitPresenceUpdate.cs
@@ -25,10 +25,6 @@
25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28using System;
29using System.Collections.Generic;
30using System.Text;
31
32namespace OpenSim.Grid.MessagingServer 28namespace OpenSim.Grid.MessagingServer
33{ 29{
34 public class WorkUnitPresenceUpdate : WorkUnitBase 30 public class WorkUnitPresenceUpdate : WorkUnitBase
diff --git a/OpenSim/Grid/MessagingServer/XMPPHTTPService.cs b/OpenSim/Grid/MessagingServer/XMPPHTTPService.cs
index 4a66717..df3bc22 100644
--- a/OpenSim/Grid/MessagingServer/XMPPHTTPService.cs
+++ b/OpenSim/Grid/MessagingServer/XMPPHTTPService.cs
@@ -27,19 +27,16 @@
27 27
28using System; 28using System;
29using System.IO; 29using System.IO;
30using System.Text; 30using System.Reflection;
31using System.Xml;
32using System.Xml.Serialization;
33using libsecondlife; 31using libsecondlife;
34using OpenSim.Framework; 32using log4net;
35using OpenSim.Framework.Console;
36using OpenSim.Framework.Servers; 33using OpenSim.Framework.Servers;
37 34
38namespace OpenSim.Grid.MessagingServer 35namespace OpenSim.Grid.MessagingServer
39{ 36{
40 public class XMPPHTTPStreamHandler : BaseStreamHandler 37 public class XMPPHTTPStreamHandler : BaseStreamHandler
41 { 38 {
42 private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); 39 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
43 40
44 41
45 /// <summary> 42 /// <summary>
@@ -85,7 +82,7 @@ namespace OpenSim.Grid.MessagingServer
85 82
86 public class PostXMPPStreamHandler : BaseStreamHandler 83 public class PostXMPPStreamHandler : BaseStreamHandler
87 { 84 {
88 private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); 85 private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
89 86
90 public override byte[] Handle(string path, Stream request) 87 public override byte[] Handle(string path, Stream request)
91 { 88 {