Ejemplo n.º 1
0
 private ChangeStateForCafeWindowsServiceOption(string command, ServiceStatus waitFor,
                                                ProcessExecutor processExecutor, IFileSystem fileSystem,
                                                ServiceStatusWaiter serviceStatusWaiter, string serviceName) : base($"{command} service")
 {
     _command             = command;
     _waitFor             = waitFor;
     _processExecutor     = processExecutor;
     _fileSystem          = fileSystem;
     _serviceStatusWaiter = serviceStatusWaiter;
     _serviceName         = serviceName;
 }
Ejemplo n.º 2
0
 public static ChangeStateForCafeWindowsServiceOption StopCafeWindowsServiceOption(
     ProcessExecutor processExecutor, IFileSystem fileSystem, ServiceStatusWaiter serviceStatusWaiter, string serviceName)
 {
     return(new ChangeStateForCafeWindowsServiceOption("stop", ServiceStatus.Stopped, processExecutor,
                                                       fileSystem, serviceStatusWaiter, serviceName));
 }