public DeviceModulesController( [NotNull] Container container, [NotNull] IDeviceConfigurationService deviceConfigurationService, [NotNull] IDeviceControllerFactory deviceControllerFactory, [NotNull] IUiInvoker uiInvoker) { _container = container ?? throw new ArgumentNullException(nameof(container)); _deviceConfigurationService = deviceConfigurationService ?? throw new ArgumentNullException(nameof(deviceConfigurationService)); _deviceControllerFactory = deviceControllerFactory ?? throw new ArgumentNullException(nameof(deviceControllerFactory)); _uiInvoker = uiInvoker ?? throw new ArgumentNullException(nameof(uiInvoker)); _deviceModules = new Dictionary <Guid, WpfDeviceModule>(); _deviceTypeModules = new Dictionary <Guid, DeviceTypeModule>(); }
public DeviceConfigsViewModel( [NotNull] ILogger logger, [NotNull] IDeviceConfigurationService configurationService, [NotNull] IDeviceModulesController deviceModulesController, [NotNull] IUiInvoker uiInvoker, [NotNull] ToastNotifications.Notifier notifier, [NotNull] IEventBus eventBus) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _configurationService = configurationService ?? throw new ArgumentNullException(nameof(configurationService)); _deviceModulesController = deviceModulesController ?? throw new ArgumentNullException(nameof(deviceModulesController)); _uiInvoker = uiInvoker; _notifier = notifier ?? throw new ArgumentNullException(nameof(notifier)); _eventBus = eventBus ?? throw new ArgumentNullException(nameof(eventBus)); _deviceTypes = new Dictionary <Guid, DeviceTypeInfo>(); _deviceInfos = new Dictionary <Guid, DeviceInfo>(); }
public void SetUiInvoker(IUiInvoker invoker) { Invoker = invoker ?? throw new ArgumentNullException(nameof(invoker)); }