示例#1
0
 public CommandService(IFileWatchService fileWatchService, IRoutingTableService routingTableService, IStatusServices statusServices)
 {
     FileWatchService    = fileWatchService;
     RoutingTableService = routingTableService;
     StatusServices      = statusServices;
     Init();
 }
示例#2
0
        public StatusPanelViewModel(IUnityContainer container, IStatusServices statusService, ILogService logService, IEventAggregator ea, ISerialService serialService, ICameraService cameraService)
        {
            _container     = container;
            _statusService = statusService;
            _logService    = logService;
            _ea            = ea;
            _serialService = serialService;
            _cameraService = cameraService;
            _logService.ConfigureLogger("StatusPanel");

            _serialPowerStatusTimer          = new Timer(_serialPowerStatusTimerInterval);
            _serialPowerStatusTimer.Elapsed += (sender, args) => SyncSerialPowerStatus();

            _serialCurrentStatusTimer          = new Timer(_serialCurrentStatusTimerInterval);
            _serialCurrentStatusTimer.Elapsed += (sender, args) => SyncCurrentStatus();

            _syncCameraTemperatureTimer          = new Timer(_syncCameraTemperatureTimerInterval);
            _syncCameraTemperatureTimer.Elapsed += (sender, args) => SyncCameraTemperature();

            _ea.GetEvent <ComConnectedEvent>().Subscribe(StartComStatusSynchronization);
            _ea.GetEvent <ComDisconnectedEvent>().Subscribe(StopComStatusSynchronization);

            _ea.GetEvent <VimbaConnectedEvent>().Subscribe(StartCameraStatusSynchronization);
            _ea.GetEvent <VimbaDisconnectedEvent>().Subscribe(StopCameraStatusSynchronization);
            _ea.GetEvent <ShutDownEvent>().Subscribe(Shutdown);
            _ea.GetEvent <StartCaptureEvent>().Subscribe(Shutdown);
            _ea.GetEvent <StopCaptureEvent>().Subscribe(Restart);
        }
        public ParameterPanelViewModel(
            ISerialService serialService,
            ICameraService cameraService,
            IParameterServices param,
            IStatusServices statusService,
            ICaptureService captureService,
            IEventAggregator eventAggregator)
        {
            _serialService   = serialService;
            _cameraService   = cameraService;
            _captureService  = captureService;
            Status           = statusService;
            _eventAggregator = eventAggregator;
            Params           = param;

            // ask for list update for initial value
            // _eventAggregator.GetEvent<ComListUpdateRequestedEvent>().Publish();

            Params.ManualPowerCheck.PropertyChanged += ManualPowerCheck_PropertyChanged;


            // restore remote configuration
            SyncRemoteSerialConfiguration();

            CameraInitialization();
        }
示例#4
0
 public FileWatchService(ILoggerFactory logger, R.Services.IConfigurationUpdateService updateSvc, IStatusServices statusSvc)
 {
     UpdateService = updateSvc;
     StatusService = statusSvc;
     statusSvc.Status[typeof(FileWatchService).Name] = ServiceStatus.Initializing;
     Log = logger.CreateLogger(nameof(FileWatchService));
 }
 public ConfigurationUpdateService(ILoggerFactory logger, IStatusServices statusSvc, IRoutingTableService routingTableService, IComponentFactory componentFactory, IPseudoDbService dbService)
 {
     DbService           = dbService;
     StatusService       = statusSvc;
     RoutingTableService = routingTableService;
     ComponentFactory    = componentFactory;
     statusSvc.Status[typeof(ConfigurationUpdateService).Name] = ServiceStatus.Running;
     Log = logger.CreateLogger(nameof(ConfigurationUpdateService));
 }
示例#6
0
 public TransferenciaAppService(ITransferenciaServices transferenciaServices,
                                ILoteServices loteServices, IStatusServices statusServices,
                                ICategoriaAppServices categoriaAppServices, IUnitOfWork uow) : base(uow)
 {
     _transferenciaServices = transferenciaServices;
     _loteServices          = loteServices;
     _statusServices        = statusServices;
     _categoriaAppServices  = categoriaAppServices;
 }
 public StartMachineViewModel(IBeukServices beukService, IMachineServices machineService, IOperatorServices operatorService, IOrderServices orderService, IUnitServices unitService, IStatusServices statusService)
 {
     this.beukService     = beukService;
     this.machineService  = machineService;
     this.operatorService = operatorService;
     this.orderService    = orderService;
     this.unitService     = unitService;
     this.statusService   = statusService;
     beukValidator        = new BeukValidator();
     machineValidator     = new MachineValidator();
     orderValidator       = new StatusValidator();
     unitValidator        = new UnitValidator();
     statusValidator      = new StatusValidator();
 }
示例#8
0
 public StatusAppService(IStatusServices statusServices, IUnitOfWork uow) : base(uow)
 {
     _statusServices = statusServices;
 }
示例#9
0
 public StatusController(IStatusServices StatusServices)
 {
     //_StatusServices = new StatusServices();
     _StatusServices = StatusServices;
 }
示例#10
0
 public StatusController(IStatusServices statusServices)
 {
     _statusServices = statusServices;
 }
 public OverzichtMachinesViewModel(IBeukServices beukService, IMachineServices machineService, IStatusServices statusService)
 {
     this.beukService    = beukService;
     this.machineService = machineService;
     this.statusService  = statusService;
 }
示例#12
0
 public OverzichtViewModel(IStatusServices statusService, IMachineServices machineService)
 {
     this.statusService  = statusService;
     this.machineService = machineService;
 }