From de82bf9eb53cdd3be94b5a730b81c70d1e244b70 Mon Sep 17 00:00:00 2001 From: MW Date: Thu, 26 Feb 2009 15:21:06 +0000 Subject: Added a PostInitialise method to IApplicationPlugin, this allows us to do work in there knowing that all other ApplicationPlugins have been initialised by that time. Moved the loadRegions code in LoadRegionsPlugin to the PostInitialise method. --- OpenSim/Grid/GridServer/GridServerBase.cs | 33 ------------------------------- OpenSim/Grid/UserServer/Main.cs | 4 ++-- 2 files changed, 2 insertions(+), 35 deletions(-) (limited to 'OpenSim/Grid') diff --git a/OpenSim/Grid/GridServer/GridServerBase.cs b/OpenSim/Grid/GridServer/GridServerBase.cs index 1bc3955..1ee97f4 100644 --- a/OpenSim/Grid/GridServer/GridServerBase.cs +++ b/OpenSim/Grid/GridServer/GridServerBase.cs @@ -176,39 +176,6 @@ namespace OpenSim.Grid.GridServer public void CheckSims(object sender, ElapsedEventArgs e) { - /* - foreach (SimProfileBase sim in m_simProfileManager.SimProfiles.Values) - { - string SimResponse = String.Empty; - try - { - WebRequest CheckSim = WebRequest.Create("http://" + sim.sim_ip + ":" + sim.sim_port.ToString() + "/checkstatus/"); - CheckSim.Method = "GET"; - CheckSim.ContentType = "text/plaintext"; - CheckSim.ContentLength = 0; - - StreamWriter stOut = new StreamWriter(CheckSim.GetRequestStream(), System.Text.Encoding.ASCII); - stOut.Write(String.Empty); - stOut.Close(); - - StreamReader stIn = new StreamReader(CheckSim.GetResponse().GetResponseStream()); - SimResponse = stIn.ReadToEnd(); - stIn.Close(); - } - catch - { - } - - if (SimResponse == "OK") - { - m_simProfileManager.SimProfiles[sim.UUID].online = true; - } - else - { - m_simProfileManager.SimProfiles[sim.UUID].online = false; - } - } - */ } public override void ShutdownSpecific() diff --git a/OpenSim/Grid/UserServer/Main.cs b/OpenSim/Grid/UserServer/Main.cs index dc38a3f..5a1dfd1 100644 --- a/OpenSim/Grid/UserServer/Main.cs +++ b/OpenSim/Grid/UserServer/Main.cs @@ -130,10 +130,10 @@ namespace OpenSim.Grid.UserServer //Should be in modules? IInterServiceInventoryServices inventoryService = new OGS1InterServiceInventoryService(Cfg.InventoryUrl); - // IRegionProfileService regionProfileService = new RegionProfileServiceProxy(); + // IRegionProfileRouter regionProfileService = new RegionProfileServiceProxy(); RegisterInterface(inventoryService); - // RegisterInterface(regionProfileService); + // RegisterInterface(regionProfileService); return inventoryService; } -- cgit v1.1