#pragma warning disable CS1998 private static async Task Run(AppConfiguration configuration) { var validator = new ConfigurationValidator(configuration); if (!validator.Validate()) { return; } Console.WriteLine("WIP"); }
private static async Task Run(AppConfiguration configuration) { var validator = new ConfigurationValidator(configuration); if (!validator.Validate()) { return; } using var httpClient = new HttpClient(); using var tokenProviderFactory = new LogicTokenProviderFactory(configuration.TokenProvider); var gatewayAutomation = new GatewayAutomation(httpClient, tokenProviderFactory, configuration.Gateway); var results = await gatewayAutomation.PublishAsync(configuration.FolderPath).ConfigureAwait(false); foreach (var result in results) { Console.WriteLine(result.ToString()); } }