public SystemService(SystemStatusService systemStatusService, SystemLaunchArguments systemLaunchArguments, SystemCancellationToken systemCancellationToken, NotificationsService notificationsService, MessageBusService messageBusService, ILogger <SystemService> logger) { _systemStatusService = systemStatusService ?? throw new ArgumentNullException(nameof(systemStatusService)); _systemLaunchArguments = systemLaunchArguments ?? throw new ArgumentNullException(nameof(systemLaunchArguments)); _systemCancellationToken = systemCancellationToken ?? throw new ArgumentNullException(nameof(systemCancellationToken)); _notificationsService = notificationsService ?? throw new ArgumentNullException(nameof(notificationsService)); _messageBusService = messageBusService ?? throw new ArgumentNullException(nameof(messageBusService)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _creationTimestamp = DateTime.Now; }
public WirehomeController(string[] arguments) { _systemLaunchArguments = new SystemLaunchArguments(arguments ?? new string[0]); }
public WirehomeController(ILoggerFactory loggerFactory, string[] arguments) { _loggerFactory = loggerFactory ?? throw new ArgumentNullException(nameof(loggerFactory)); _systemLaunchArguments = new SystemLaunchArguments(arguments ?? new string[0]); }