From 10f7e534c931a7cdfa9bbc6995700310aadf07b2 Mon Sep 17 00:00:00 2001 From: Dr Scofield Date: Mon, 26 Jan 2009 21:34:44 +0000 Subject: + adding URI substitution for concierges broker URI --- .../Region/Environment/Modules/Avatar/Concierge/ConciergeModule.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'OpenSim/Region/Environment/Modules/Avatar/Concierge/ConciergeModule.cs') diff --git a/OpenSim/Region/Environment/Modules/Avatar/Concierge/ConciergeModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Concierge/ConciergeModule.cs index 297913e..2d1f381 100644 --- a/OpenSim/Region/Environment/Modules/Avatar/Concierge/ConciergeModule.cs +++ b/OpenSim/Region/Environment/Modules/Avatar/Concierge/ConciergeModule.cs @@ -357,6 +357,8 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Concierge if (String.IsNullOrEmpty(_brokerURI)) return; + string uri = String.Format(_brokerURI, scene.RegionInfo.RegionName, scene.RegionInfo.RegionID); + // get attendee list for the scene List attendees; lock (_sceneAttendees) @@ -394,7 +396,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Concierge string payload = list.ToString(); // post via REST to broker - HttpWebRequest updatePost = WebRequest.Create(_brokerURI) as HttpWebRequest; + HttpWebRequest updatePost = WebRequest.Create(uri) as HttpWebRequest; updatePost.Method = "POST"; updatePost.ContentType = "text/xml"; updatePost.ContentLength = payload.Length; @@ -405,7 +407,7 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Concierge payloadStream.Close(); updatePost.BeginGetResponse(UpdateBrokerDone, updatePost); - _log.DebugFormat("[Concierge] async broker update to {0} started", _brokerURI); + _log.DebugFormat("[Concierge] async broker update to {0} started", uri); } private void UpdateBrokerDone(IAsyncResult result) -- cgit v1.1