コード例 #1
0
 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();
     }
 }
コード例 #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();
            }
        }
コード例 #3
0
 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);
     }
 }