Ejemplo n.º 1
0
 public HwConfigSample(INonconfigDataManager nonconfigDataManager, IIntegrationService integrationSvc, IAceLog log)
 {
     _nonconfigDataManager = nonconfigDataManager;
     _integrationSvc       = integrationSvc;
     _log           = log;
     SampleFileName = SAMPLE_FILENAME;
 }
Ejemplo n.º 2
0
 public HwConfigSample(INonconfigDataManager nonconfigDataManager, IIntegrationService integrationSvc, IAceLog log)
 {
     _nonconfigDataManager = nonconfigDataManager;
     _integrationSvc = integrationSvc;
     _log = log;
     SampleFileName = SAMPLE_FILENAME;
 }
Ejemplo n.º 3
0
        public void Initialize()
        {
            if (_container == null)
            {
                return;
            }
            if (_container.IsRegistered <IAceLog>())
            {
                _log = _container.Resolve <IAceLog>();
            }

            if (!_container.IsRegistered <IConfigDll>(AgentId))
            {
                _container.RegisterType <IConfigDll, HwConfigSample>(AgentId, new ContainerControlledLifetimeManager());
            }

            _container.RegisterInstance <IBasicAgent>(AgentId, this, new ContainerControlledLifetimeManager());
            _container.RegisterInstance <IDiscoveryStrategy>(AgentId, this, new ContainerControlledLifetimeManager());
            _container.RegisterInstance <IInterfaceAgent>(AgentId, this, new ContainerControlledLifetimeManager());
            _container.RegisterInstance <IVerifyStrategy>(AgentId, this, new ContainerControlledLifetimeManager());
            _container.RegisterInstance <IManuallyAdd>(AgentId, this, new ContainerControlledLifetimeManager());
            _container.RegisterInstance <IDiscoveryBackgroundProcess>(AgentId, this, new ContainerControlledLifetimeManager());
            _container.RegisterType <SampleDiscoveryWatcher>(new ContainerControlledLifetimeManager());
        }
Ejemplo n.º 4
0
        public void Initialize()
        {
            if (_container == null) return;
            if (_container.IsRegistered<IAceLog>()) _log = _container.Resolve<IAceLog>();

            if (!_container.IsRegistered<IConfigDll>(AgentId))
            {
                _container.RegisterType<IConfigDll, HwConfigSample>(AgentId, new ContainerControlledLifetimeManager());
            }

            _container.RegisterInstance<IBasicAgent>(AgentId, this, new ContainerControlledLifetimeManager());
            _container.RegisterInstance<IDiscoveryStrategy>(AgentId, this, new ContainerControlledLifetimeManager());
            _container.RegisterInstance<IInterfaceAgent>(AgentId, this, new ContainerControlledLifetimeManager());
            _container.RegisterInstance<IVerifyStrategy>(AgentId, this, new ContainerControlledLifetimeManager());
            _container.RegisterInstance<IManuallyAdd>(AgentId, this, new ContainerControlledLifetimeManager());
            _container.RegisterInstance<IDiscoveryBackgroundProcess>(AgentId, this, new ContainerControlledLifetimeManager());
            _container.RegisterType<SampleDiscoveryWatcher>(new ContainerControlledLifetimeManager());
        }