/// <summary> /// get the configuration from the arguments /// and launch the command. /// </summary> /// <param name="argv">Command-line arguments passed to the program.</param> private static async Task StartCliAsync(string[] argv) { var deprecationDisclaimer = new DeprecationDisclaimer( new ReleasesHandler(), Printer.PrinterFactory.Factory(CLILogs.LogsLevel.Warning, true), new EnvironmentVariableReader()); await deprecationDisclaimer.CheckReleaseDeprecationsAsync(); var parser = CreateCommandLineParser(); IConfiguration configAndcommandValues = parser.Parse(argv); PrintInfoDebug.IConfiguration(configAndcommandValues); IApiDataManager apiDataManager = CreateApiDataManager(); if (apiDataManager.Start(configAndcommandValues)) { ICommandManager commandManager = CreateCommandManager(configAndcommandValues.ResultFormat); await commandManager.StartAsync(configAndcommandValues); } }
public HangfireActions(ISystemRepo DB, IApiDataManager API) { _db = DB; _api = API; }