From 4ec4e16c809cf86a63b736d2b7b6ad7291595a5f Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Wed, 4 Jun 2008 09:59:27 +0000 Subject: Formatting cleanup, minor refactoring, svn properties. --- OpenSim/Grid/MessagingServer/MessageService.cs | 26 ++++++++++++------------ OpenSim/Grid/MessagingServer/PresenceInformer.cs | 16 +++++++-------- OpenSim/Grid/MessagingServer/UserManager.cs | 8 ++++---- 3 files changed, 25 insertions(+), 25 deletions(-) (limited to 'OpenSim/Grid/MessagingServer') diff --git a/OpenSim/Grid/MessagingServer/MessageService.cs b/OpenSim/Grid/MessagingServer/MessageService.cs index 0abb89d..cec596f 100644 --- a/OpenSim/Grid/MessagingServer/MessageService.cs +++ b/OpenSim/Grid/MessagingServer/MessageService.cs @@ -67,12 +67,12 @@ namespace OpenSim.Grid.MessagingServer UserConfig uc = new UserConfig(); uc.DatabaseConnect = cfg.DatabaseConnect; uc.DatabaseProvider = cfg.DatabaseProvider; - + m_userManager._config = uc; m_userManager.AddPlugin(cfg.DatabaseProvider, cfg.DatabaseConnect); } - + #region FriendList Methods @@ -152,7 +152,7 @@ namespace OpenSim.Grid.MessagingServer friendlistupdater.OnDone += PresenceUpdateDone; WaitCallback cb = new WaitCallback(friendlistupdater.go); ThreadPool.QueueUserWorkItem(cb); - + } else { @@ -173,7 +173,7 @@ namespace OpenSim.Grid.MessagingServer { // we need to send out online status update, but the user is already subscribed } - + UserAgentData p2Handle = m_userManager.GetUserAgentData(friendpresence.agentData.AgentID); if (p2Handle != null) @@ -196,7 +196,7 @@ namespace OpenSim.Grid.MessagingServer // skip, agent doesn't appear to exist anymore } - + //SendRegionPresenceUpdate(userpresence, friendpresence); } @@ -315,8 +315,8 @@ namespace OpenSim.Grid.MessagingServer UserAgentData p2Handle = m_userManager.GetUserAgentData(friendd.agentData.AgentID); if (p2Handle != null) { - - + + friendd.regionData.regionHandle = p2Handle.Handle; PresenceInformer friendlistupdater = new PresenceInformer(); friendlistupdater.presence1 = AgentData; @@ -328,11 +328,11 @@ namespace OpenSim.Grid.MessagingServer friendlistupdater.OnGetRegionData += GetRegionInfo; friendlistupdater.OnDone += PresenceUpdateDone; - + WaitCallback cb3 = new WaitCallback(friendlistupdater.go); ThreadPool.QueueUserWorkItem(cb3); - + } else @@ -519,14 +519,14 @@ namespace OpenSim.Grid.MessagingServer else { // Don't lock the cache while we're looking up the region! - lookup = true; + lookup = true; } } if (lookup) { regionInfo = RequestRegionInfo(regionhandle); - + if (regionInfo != null) { lock (m_regionInfoCache) @@ -542,7 +542,7 @@ namespace OpenSim.Grid.MessagingServer } } } - + return regionInfo; } @@ -555,7 +555,7 @@ namespace OpenSim.Grid.MessagingServer cachecount = m_regionInfoCache.Count; m_regionInfoCache.Clear(); } - + return cachecount; } diff --git a/OpenSim/Grid/MessagingServer/PresenceInformer.cs b/OpenSim/Grid/MessagingServer/PresenceInformer.cs index 3e35f20..e02aa06 100644 --- a/OpenSim/Grid/MessagingServer/PresenceInformer.cs +++ b/OpenSim/Grid/MessagingServer/PresenceInformer.cs @@ -36,13 +36,13 @@ namespace OpenSim.Grid.MessagingServer { public delegate RegionProfileData GetRegionData(ulong region_handle); public delegate void Done(PresenceInformer obj); - + public class PresenceInformer { public event GetRegionData OnGetRegionData; public event Done OnDone; - + private GetRegionData handlerGetRegionData = null; private Done handlerDone = null; @@ -102,10 +102,10 @@ namespace OpenSim.Grid.MessagingServer PresenceParams.Add("notify_id",UserToUpdate.agentData.AgentID.ToString()); if (TalkingAbout.OnlineYN) PresenceParams.Add("status","TRUE"); - else + else PresenceParams.Add("status","FALSE"); - + ArrayList SendParams = new ArrayList(); @@ -123,12 +123,12 @@ namespace OpenSim.Grid.MessagingServer catch (WebException) { m_log.WarnFormat("[INFORM]: failed notifying region {0} containing user {1} about {2}", whichRegion.regionName, UserToUpdate.agentData.firstname + " " + UserToUpdate.agentData.lastname, TalkingAbout.agentData.firstname + " " + TalkingAbout.agentData.lastname); - } - } - else + } + } + else { m_log.Info("[PRESENCEUPDATER]: Region data was null skipping"); - + } handlerDone = OnDone; diff --git a/OpenSim/Grid/MessagingServer/UserManager.cs b/OpenSim/Grid/MessagingServer/UserManager.cs index 605c3fb..de41756 100644 --- a/OpenSim/Grid/MessagingServer/UserManager.cs +++ b/OpenSim/Grid/MessagingServer/UserManager.cs @@ -44,7 +44,7 @@ namespace OpenSim.Grid.MessagingServer public UserAgentData GetUserAgentData(LLUUID AgentID) { UserProfileData userProfile = GetUserProfile(AgentID); - + if (userProfile != null) { return userProfile.CurrentAgent; @@ -58,19 +58,19 @@ namespace OpenSim.Grid.MessagingServer public override UserProfileData SetupMasterUser(string firstName, string lastName) { //throw new Exception("The method or operation is not implemented."); - return null; + return null; } public override UserProfileData SetupMasterUser(string firstName, string lastName, string password) { //throw new Exception("The method or operation is not implemented."); - return null; + return null; } public override UserProfileData SetupMasterUser(LLUUID uuid) { //throw new Exception("The method or operation is not implemented."); - return null; + return null; } } } -- cgit v1.1