diff options
author | Adam Frisby | 2008-04-21 07:09:17 +0000 |
---|---|---|
committer | Adam Frisby | 2008-04-21 07:09:17 +0000 |
commit | fef3b3689492dea63693c964bcdbec9f5137eb5e (patch) | |
tree | 7791eef001d85d3e1de863a68f26ff9434d062ca /OpenSim/Grid/MessagingServer | |
parent | * Terrain Module code has been reformatted to comply with guidelines. (diff) | |
download | opensim-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/Grid/MessagingServer')
-rw-r--r-- | OpenSim/Grid/MessagingServer/Main.cs | 9 | ||||
-rw-r--r-- | OpenSim/Grid/MessagingServer/MessageService.cs | 14 | ||||
-rw-r--r-- | OpenSim/Grid/MessagingServer/PresenceInformer.cs | 13 | ||||
-rw-r--r-- | OpenSim/Grid/MessagingServer/UserPresenceData.cs | 3 | ||||
-rw-r--r-- | OpenSim/Grid/MessagingServer/WorkUnitBase.cs | 4 | ||||
-rw-r--r-- | OpenSim/Grid/MessagingServer/WorkUnitPresenceUpdate.cs | 4 | ||||
-rw-r--r-- | OpenSim/Grid/MessagingServer/XMPPHTTPService.cs | 11 |
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 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections.Generic; | ||
30 | using System.IO; | 29 | using System.IO; |
30 | using System.Reflection; | ||
31 | using libsecondlife; | 31 | using libsecondlife; |
32 | using log4net; | ||
33 | using log4net.Config; | ||
32 | using OpenSim.Framework; | 34 | using OpenSim.Framework; |
33 | using OpenSim.Framework.Communications.Cache; | ||
34 | using OpenSim.Framework.Console; | 35 | using OpenSim.Framework.Console; |
35 | using OpenSim.Framework.Servers; | 36 | using 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 | ||
28 | using System; | 28 | using System; |
29 | using System.Net; | ||
30 | using System.Net.Sockets; | ||
31 | using System.Collections; | 29 | using System.Collections; |
32 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
31 | using System.Net; | ||
32 | using System.Reflection; | ||
33 | using System.Threading; | 33 | using System.Threading; |
34 | //using System.Xml; | ||
35 | using libsecondlife; | 34 | using libsecondlife; |
35 | using log4net; | ||
36 | using Nwc.XmlRpc; | 36 | using Nwc.XmlRpc; |
37 | using OpenSim.Framework; | ||
38 | using OpenSim.Framework.Console; | ||
39 | using OpenSim.Data; | 37 | using OpenSim.Data; |
40 | using OpenSim.Framework.Servers; | 38 | using OpenSim.Framework; |
41 | using FriendRights = libsecondlife.FriendRights; | 39 | //using System.Xml; |
42 | 40 | ||
43 | namespace OpenSim.Grid.MessagingServer | 41 | namespace 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 | ||
28 | using System; | ||
29 | using System.Collections; | 28 | using System.Collections; |
30 | using System.Collections.Generic; | 29 | using System.Reflection; |
31 | using System.Net; | 30 | using log4net; |
32 | using System.Net.Sockets; | ||
33 | using System.Text; | ||
34 | using libsecondlife; | ||
35 | using Nwc.XmlRpc; | 31 | using Nwc.XmlRpc; |
36 | using OpenSim.Framework; | ||
37 | using OpenSim.Framework.Console; | ||
38 | using OpenSim.Data; | 32 | using OpenSim.Data; |
39 | using OpenSim.Framework.Servers; | ||
40 | 33 | ||
41 | namespace OpenSim.Grid.MessagingServer | 34 | namespace 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 | ||
28 | using System; | 28 | using System; |
29 | using System.Collections; | ||
30 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
31 | using libsecondlife; | 30 | using libsecondlife; |
32 | using OpenSim.Framework; | ||
33 | using OpenSim.Data; | 31 | using OpenSim.Data; |
32 | using OpenSim.Framework; | ||
34 | 33 | ||
35 | namespace OpenSim.Grid.MessagingServer | 34 | namespace 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 | ||
28 | using System; | ||
29 | using System.Collections.Generic; | ||
30 | using System.Text; | ||
31 | |||
32 | namespace OpenSim.Grid.MessagingServer | 28 | namespace 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 | ||
28 | using System; | ||
29 | using System.Collections.Generic; | ||
30 | using System.Text; | ||
31 | |||
32 | namespace OpenSim.Grid.MessagingServer | 28 | namespace 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 | ||
28 | using System; | 28 | using System; |
29 | using System.IO; | 29 | using System.IO; |
30 | using System.Text; | 30 | using System.Reflection; |
31 | using System.Xml; | ||
32 | using System.Xml.Serialization; | ||
33 | using libsecondlife; | 31 | using libsecondlife; |
34 | using OpenSim.Framework; | 32 | using log4net; |
35 | using OpenSim.Framework.Console; | ||
36 | using OpenSim.Framework.Servers; | 33 | using OpenSim.Framework.Servers; |
37 | 34 | ||
38 | namespace OpenSim.Grid.MessagingServer | 35 | namespace 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 | { |