Program.cs 694 B

123456789101112131415161718192021222324
  1. using Microsoft.Extensions.DependencyInjection;
  2. using Microsoft.Extensions.Hosting;
  3. using System;
  4. namespace PlatformBenchmarks
  5. {
  6. class Program
  7. {
  8. //public static bool Debug = false;
  9. public static bool UpDB = false;
  10. public static void Main(string[] args)
  11. {
  12. //Debug = (args != null && args.Length > 0 && args[0] == "debug");
  13. UpDB = (args != null && args.Length > 0 && args[0] == "updb");
  14. new HostBuilder().ConfigureServices(delegate (HostBuilderContext hostContext, IServiceCollection services)
  15. {
  16. services.AddHostedService<HttpServer>();
  17. }).Build().Run();
  18. }
  19. }
  20. }