public override void Initialize(IConfigSource config, IRegistryCore registry)
 {
     IConfig handlers = config.Configs["Handlers"];
     if (handlers.GetString("SimulationHandler", "") == "GatekeeperServiceConnector")
     {
         registry.RegisterModuleInterface<ISimulationService>(this);
         m_localBackend = new LocalSimulationServiceConnector();
     }
 }
Example #2
0
        public virtual void Initialize(IConfigSource config, IRegistryCore registry)
        {
            IConfig handlers = config.Configs["Handlers"];

            if (handlers.GetString("SimulationHandler", "") == "SimulationServiceConnector")
            {
                registry.RegisterModuleInterface <ISimulationService>(this);
                m_localBackend = new LocalSimulationServiceConnector();
            }
        }
 public override void Initialize (IConfigSource config, IRegistryCore registry)
 {
     IConfig handlers = config.Configs["Handlers"];
     m_registry = registry;
     if (handlers.GetString ("SimulationHandler", "") == "RobustSimulationServiceConnector")
     {
         registry.RegisterModuleInterface<ISimulationService> (this);
         m_localBackend = new LocalSimulationServiceConnector ();
         m_registry.RequestModuleInterface<ISimulationBase> ().EventManager.RegisterEventHandler ("ReleaseAgent", ReleaseAgentHandler);
     }
 }