Ejemplo n.º 1
0
    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;
    }
Ejemplo n.º 2
0
 public WirehomeController(string[] arguments)
 {
     _systemLaunchArguments = new SystemLaunchArguments(arguments ?? new string[0]);
 }
Ejemplo n.º 3
0
 public WirehomeController(ILoggerFactory loggerFactory, string[] arguments)
 {
     _loggerFactory         = loggerFactory ?? throw new ArgumentNullException(nameof(loggerFactory));
     _systemLaunchArguments = new SystemLaunchArguments(arguments ?? new string[0]);
 }