Program.cs 884 B

1234567891011121314151617181920212223242526272829
  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. //HttpServer server = new HttpServer();
  17. //server.StartAsync(default);
  18. //Console.ReadLine();
  19. new HostBuilder().ConfigureServices(delegate (HostBuilderContext hostContext, IServiceCollection services)
  20. {
  21. services.AddHostedService<HttpServer>();
  22. }).Build().Run();
  23. }
  24. }
  25. }