master
Tudor Stanciu 2022-01-12 17:25:29 +02:00
parent 7ced2986af
commit b308913d9e
2 changed files with 3 additions and 1 deletions

View File

@ -31,6 +31,9 @@ namespace NetworkResurrector.Agent.Application.Services.Windows
private string SetOptions(string arguments, PowerOptions options) private string SetOptions(string arguments, PowerOptions options)
{ {
if (options == null)
options = new PowerOptions(null, false);
if (options.Force) if (options.Force)
arguments = $"{arguments} -f"; arguments = $"{arguments} -f";

View File

@ -7,6 +7,5 @@ namespace NetworkResurrector.Agent.PublishedLanguage.Commands
public class Lock : Command<LockResult> public class Lock : Command<LockResult>
{ {
public ActionOwner Owner { get; set; } public ActionOwner Owner { get; set; }
public ActionOptions Options { get; set; }
} }
} }