123456789101112131415161718192021 |
- using Microsoft.Extensions.DependencyInjection;
- using Microsoft.Extensions.Hosting;
- using System;
- namespace PlatformBenchmarks
- {
- class Program
- {
- public static bool Debug = false;
- public static void Main(string[] args)
- {
- Debug = (args != null && args.Length > 0 && args[0] == "debug");
- new HostBuilder().ConfigureServices(delegate (HostBuilderContext hostContext, IServiceCollection services)
- {
- services.AddHostedService<HttpServer>();
- }).Build().Run();
- }
- }
- }
|