public void Initialize(ISimulationBase simBase)
 {
     LocalDataService service = new LocalDataService();
     service.Initialize(simBase.ConfigSource, simBase.ApplicationRegistry);
 }
        public virtual void InitializeModules()
        {
            LocalDataService lds = new LocalDataService();
            lds.Initialize(ConfigSource, ApplicationRegistry, m_dataPlugins);

            List<dynamic> modules = new List<dynamic>();
            foreach (Type t in m_servicePlugins)
            {
                var mods = UniverseModuleLoader.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();
            }
        }