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; }
public DeviceController(CharacteristicSubscriptionService characteristicSubscriptionService, InfoManager infoManager) { _characteristicSubscriptionService = characteristicSubscriptionService; _infoManager = infoManager; }