From 65d413e5ee1a2e7e46806039d667fc31063e2a09 Mon Sep 17 00:00:00 2001 From: MW Date: Sat, 21 Feb 2009 14:19:40 +0000 Subject: A bit more refactoring of the GridServer. To make the "modules" share a common Initialise method. --- OpenSim/Grid/GridServer/GridRestModule.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'OpenSim/Grid/GridServer/GridRestModule.cs') diff --git a/OpenSim/Grid/GridServer/GridRestModule.cs b/OpenSim/Grid/GridServer/GridRestModule.cs index 1ed0ac1..d0bcbe8 100644 --- a/OpenSim/Grid/GridServer/GridRestModule.cs +++ b/OpenSim/Grid/GridServer/GridRestModule.cs @@ -62,17 +62,18 @@ namespace OpenSim.Grid.GridServer /// /// Used to notify old regions as to which OpenSim version to upgrade to /// - public GridRestModule(string opensimVersion, GridDBService gridDBService, IGridCore gridCore, GridConfig config) + public GridRestModule() { - m_opensimVersion = opensimVersion; + } + + public void Initialise(string opensimVersion, GridDBService gridDBService, IGridCore gridCore, GridConfig config) + { + m_opensimVersion = opensimVersion; m_gridDBService = gridDBService; m_gridCore = gridCore; m_config = config; m_httpServer = m_gridCore.GetHttpServer(); - } - public void Initialise() - { m_httpServer.AddStreamHandler(new RestStreamHandler("GET", "/sims/", RestGetSimMethod)); m_httpServer.AddStreamHandler(new RestStreamHandler("POST", "/sims/", RestSetSimMethod)); -- cgit v1.1