public AuroraDataServiceConnector(IConfigSource config, IHttpServer server, string configName) :
                base(config, server, configName)
        {
            m_log.Debug("[AuroraDataConnectors]: Starting...");

            LocalDataService LDS = new Aurora.Services.DataService.LocalDataService();
            LDS.Initialise(config);
            server.AddStreamHandler(new AuroraDataServerPostHandler());
        }
        public GridServiceConnector(IConfigSource config, IHttpServer server, string configName) :
                base(config, server, configName)
        {
            IConfig serverConfig = config.Configs[m_ConfigName];
            if (serverConfig == null)
                throw new Exception(String.Format("No section {0} in config file", m_ConfigName));

            string gridService = serverConfig.GetString("LocalServiceModule",
                    String.Empty);

            if (gridService == String.Empty)
                throw new Exception("No LocalServiceModule in config file");

            Object[] args = new Object[] { config };
            m_GridService = ServerUtils.LoadPlugin<IGridService>(gridService, args);

            LocalDataService LDS = new Aurora.Services.DataService.LocalDataService();
            LDS.Initialise(config);
            
            GridServerPostHandler handler = new GridServerPostHandler(m_GridService);
            server.AddStreamHandler(handler);
        }
        public virtual void InitializeModules()
        {
            LocalDataService lds = new LocalDataService();
            lds.Initialise(ConfigSource, ApplicationRegistry, m_dataPlugins);

            List<dynamic> modules = new List<dynamic>();
            foreach (Type t in m_servicePlugins)
            {
                var mods = AuroraModuleLoader.PickupModules(t);
                modules.AddRange(mods);
            }

            foreach (dynamic service in modules)
            {
                if (!(service is IService)) continue;
                ((IService)service).Initialize(ConfigSource, ApplicationRegistry);
            }
            foreach (dynamic service in modules)
            {
                if (!(service is IService)) continue;
                ((IService) service).Start(ConfigSource, ApplicationRegistry);
            }
            foreach (dynamic service in modules)
            {
                if (!(service is IService)) continue;
                ((IService)service).FinishedStartup();
            }
        }
 public void Initialize(ISimulationBase openSim)
 {
     LocalDataService service = new LocalDataService();
     service.Initialise(openSim.ConfigSource, openSim.ApplicationRegistry);
 }
 public void PostInitialise()
 {
     m_log.Debug("[AURORADATA]: Setting up the data service");
     LocalDataService service = new LocalDataService();
     service.Initialise(OpenSimBase);
 }