Program.cs 826 B

123456789101112131415161718192021222324252627
  1. using AspectCore.Extensions.DependencyInjection;
  2. using Microsoft.AspNetCore.Hosting;
  3. using Microsoft.Extensions.Configuration;
  4. using Microsoft.Extensions.Hosting;
  5. using Microsoft.Extensions.Logging;
  6. using System;
  7. using System.Collections.Generic;
  8. using System.Linq;
  9. using System.Threading.Tasks;
  10. namespace PerformanceCountWebApi
  11. {
  12. public class Program
  13. {
  14. public static void Main(string[] args)
  15. {
  16. CreateHostBuilder(args).Build().Run();
  17. }
  18. public static IHostBuilder CreateHostBuilder(string[] args) =>
  19. Host.CreateDefaultBuilder(args)
  20. .ConfigureWebHostDefaults(webBuilder =>
  21. {
  22. webBuilder.UseStartup<Startup>();
  23. }).UseServiceProviderFactory(x => new DynamicProxyServiceProviderFactory());
  24. }
  25. }