Skip to content

Commit

Permalink
Refactor additional arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
emoacht committed Jan 9, 2024
1 parent 30c165d commit 427441a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Monitorian.Core/AppKeeper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ public AppKeeper()
StartupAgent = new StartupAgent();
}

public Task<bool> StartAsync(StartupEventArgs e) => StartAsync(e, []);
public Task<bool> StartAsync(StartupEventArgs e) => StartAsync(e, null);

public async Task<bool> StartAsync(StartupEventArgs e, IEnumerable<string> additionalOptions)
{
// This method must be called before StandardArguments or OtherArguments property is consumed.
// An exception thrown in this method will not be handled.
await ParseArgumentsAsync(e, EnumerateStandardOptions().Concat(additionalOptions).ToArray());
await ParseArgumentsAsync(e, EnumerateStandardOptions().Concat(additionalOptions ?? []).ToArray());
#if DEBUG
ConsoleService.TryStartWrite();
#else
Expand Down

0 comments on commit 427441a

Please sign in to comment.