예제 #1
0
        public EventTracer(
            CommandRunner commandRunner,
            CommandPanelViewModel commandPanelViewModel,
            IEnumerable <ICommandFormatter> formatters,
            CharacteristicSubscriptionService subscriptionService)
        {
            _commandRunner         = commandRunner;
            _commandPanelViewModel = commandPanelViewModel;
            _subscriptionService   = subscriptionService;
            _formatters            = formatters.ToDictionary(formatter => formatter.CommandType);

            _commandRunner.CommandExecuted   += CommandRunnerOnCommandExecuted;
            _commandRunner.CommandDispatched += CommandRunnerOnCommandDispatched;
            _commandRunner.CommandEnqueued   += CommandRunnerOnCommandEnqueued;

            subscriptionService.ValueChanged += SubscriptionServiceOnValueChanged;
        }
예제 #2
0
 public DeviceController(CharacteristicSubscriptionService characteristicSubscriptionService, InfoManager infoManager)
 {
     _characteristicSubscriptionService = characteristicSubscriptionService;
     _infoManager = infoManager;
 }