Exemplo n.º 1
0
 public TaskHost(ITaskFactory factory, ITaskRunner runner, IWindowsServiceHandler windowsService, IScheduledTaskHandler scheduledTask, TextWriter textWriter)
 {
     this._factory        = factory;
     this._runner         = runner;
     this._windowsService = windowsService;
     this._scheduledTask  = scheduledTask;
     this._textWriter     = textWriter;
 }
Exemplo n.º 2
0
        public WindowsServiceInterceptor(IWindowsServiceHandler windowsServiceHandler, IShutdown shutdown, ILogger logger)
        {
            _windowsServiceHandler = windowsServiceHandler;
            _shutdown = shutdown;
            _logger   = logger;

            _isHostHandleSpec             = new IsHostHandleSpecification();
            _isWaitForShutdownRequestSpec = new IsWaitForShutdownRequestSpecification();
        }
 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();
 }