/// <summary> /// Starts a monitored process using the applications full path. /// This method should only be used for win32 applications /// </summary> /// <param name="startInfo"></param> /// <returns></returns> public static WardenProcess Start(WardenStartInfo startInfo) { if (!Initialized) { throw new WardenManageException(Resources.Exception_Not_Initialized); } if (string.IsNullOrWhiteSpace(startInfo.FileName)) { throw new ArgumentException("fileName cannot be empty."); } if (string.IsNullOrWhiteSpace(startInfo.WorkingDirectory)) { startInfo.WorkingDirectory = PathUtils.GetDirectoryName(startInfo.FileName); } if (CheckForWardenProcess(startInfo.FileName, out var existingProcess)) { return(existingProcess); } if (string.IsNullOrWhiteSpace(startInfo.Arguments)) { startInfo.Arguments = string.Empty; } return(UserShell.LaunchWin32App(startInfo)); }
public void SetUp() { _shell = new UserShell(); _generator = new NameGenerator(Prefix); _installer = new UserInstaller(); }
public void SetUp() { _shell = new UserShell(); }