Files
ARM64/IPMonitor/Executor.cs
2025-04-27 00:33:08 -04:00

27 lines
894 B
C#
Executable File

using Microsoft.Extensions.Configuration;
namespace IPMonitor
{
public class Executor
{
private readonly IConfiguration _configuration;
private readonly IMainService _mainService;
private readonly IArguments _arguments;
public Executor(IMainService mainService,IConfigurationRoot configuration,IArguments arguments)
{
_configuration = configuration ?? throw new ArgumentException(nameof(configuration));
_mainService = mainService ?? throw new ArgumentException(nameof(mainService));
_arguments = arguments ?? throw new ArgumentException(nameof(arguments));
}
/// <summary>
/// This is essentially the starting point where we bootstrap the legacy entry point
/// </summary>
public void Execute()
{
_mainService.RunService(_arguments.GetArguments(), _configuration);
}
}
}