Program.cs 925 B

123456789101112131415161718192021222324252627282930
  1. using Microsoft.Extensions.DependencyInjection;
  2. using Microsoft.Extensions.Hosting;
  3. using System;
  4. using System.IO;
  5. namespace PlatformBenchmarks
  6. {
  7. class Program
  8. {
  9. //public static bool Debug = false;
  10. public static bool UpDB = false;
  11. public static void Main(string[] args)
  12. {
  13. //Debug = (args != null && args.Length > 0 && args[0] == "debug");
  14. var data = GMTDate.Default.DATE;
  15. UpDB = (args != null && args.Length > 0 && args[0] == "updb");
  16. UpdateCommandsCached.Init();
  17. //HttpServer server = new HttpServer();
  18. //server.StartAsync(default);
  19. //Console.ReadLine();
  20. new HostBuilder().ConfigureServices(delegate (HostBuilderContext hostContext, IServiceCollection services)
  21. {
  22. services.AddHostedService<HttpServer>();
  23. }).Build().Run();
  24. }
  25. }
  26. }