You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
657 B

  1. using System.Threading.Tasks;
  2. using Microsoft.Extensions.Configuration;
  3. using Microsoft.Extensions.DependencyInjection;
  4. using Microsoft.Extensions.Hosting;
  5. namespace Acme.BookStore.HttpApi.Client.ConsoleTestApp;
  6. class Program
  7. {
  8. static async Task Main(string[] args)
  9. {
  10. await CreateHostBuilder(args).RunConsoleAsync();
  11. }
  12. public static IHostBuilder CreateHostBuilder(string[] args) =>
  13. Host.CreateDefaultBuilder(args)
  14. .AddAppSettingsSecretsJson()
  15. .ConfigureServices((hostContext, services) =>
  16. {
  17. services.AddHostedService<ConsoleTestAppHostedService>();
  18. });
  19. }