Beispiel #1
0
 public TrayIconManager(ILogger logger, IApplicationLifetime lifetime, IWindowsServices windowsServices)
 {
     _logger          = logger;
     _lifetime        = lifetime;
     _windowsServices = windowsServices;
     _tray            = ElectronNET.API.Electron.Tray;
 }
Beispiel #2
0
 public ShortcutManager(IConfigurationProvider configProvider, IWindowsServices windowServices)
 {
     _configProvider = configProvider;
     _currentConfig  = _configProvider.GetAppConfiguration();
     _windowServices = windowServices;
     _shortcuts      = ElectronNET.API.Electron.GlobalShortcut;
     configProvider.ConfigurationUpdated += (sender, args) => BindShortcuts();
 }
 public WindowsServiceHandler(IRuntimeSettings runtimeSettings, IWindowsFactory windows)
 {
     if (runtimeSettings == null)
     {
         throw new ArgumentNullException("runtimeSettings");
     }
     this._runtimeSettings = runtimeSettings;
     this._windowsServices = windows.WindowsServices(null);
 }
 public WindowsServiceManager(IWindowsServiceProviderFactory providerFactory, IFilesHelper filesHelper, IWindowsServices serviceNames)
 {
     _providerFactory = providerFactory ?? throw new ArgumentNullException(nameof(providerFactory));
     _filesHelper     = filesHelper ?? throw new ArgumentNullException(nameof(filesHelper));
     _serviceNames    = serviceNames ?? throw new ArgumentNullException(nameof(serviceNames));
     if (!_serviceNames.Any())
     {
         throw new ArgumentNullException(nameof(serviceNames));
     }
 }
 public DeploymentHelperHost(
     IWindowsFactory windows, ILiteServerFactory liteServerFactory,
     IConsoleWriter consoleWriter, IShutdown shutdown, IHttpServerFactory httpServerFactory,
     IWindowsServiceHandler windowsServiceHandler, IRuntimeSettings settings)
 {
     _shutdown              = shutdown;
     _httpServerFactory     = httpServerFactory;
     _windowsServiceHandler = windowsServiceHandler;
     _settings              = settings;
     _liteServerFactory     = liteServerFactory;
     _consoleWriter         = consoleWriter;
     _windowsServices       = windows.WindowsServices();
 }
Beispiel #6
0
 public QueryHub(
     IQueryService queryService,
     IExecutionService executionService,
     IWindowsServices windowServices,
     IConfigurationProvider configProvider,
     IClientStreamRepository streamRepo)
 {
     _queryService     = queryService;
     _executionService = executionService;
     _windowServices   = windowServices;
     _configProvider   = configProvider;
     _streamRepo       = streamRepo;
 }
Beispiel #7
0
 public WindowsServiceHandler(IRuntimeSettings runtimeSettings, IWindowsFactory windows)
 {
     _runtimeSettings = runtimeSettings;
     _windowsServices = windows.WindowsServices();
 }
Beispiel #8
0
 public WindowsServiceController(IWindowsFactory windows, IRuntimeSettings settings)
 {
     _settings        = settings;
     _windowsServices = windows.WindowsServices();
 }