2020-05-08 18:47:15 +02:00
|
|
|
using Microsoft.AspNetCore.Hosting;
|
|
|
|
|
using Microsoft.Extensions.Hosting;
|
2020-05-11 15:34:47 +02:00
|
|
|
using System;
|
|
|
|
|
using System.Diagnostics;
|
2020-05-08 18:47:15 +02:00
|
|
|
|
|
|
|
|
namespace zero.Debug
|
|
|
|
|
{
|
|
|
|
|
public class Program
|
|
|
|
|
{
|
|
|
|
|
public static void Main(string[] args)
|
|
|
|
|
{
|
2020-05-11 15:34:47 +02:00
|
|
|
Console.WriteLine("Process ID: " + Process.GetCurrentProcess().Id);
|
2020-05-08 18:47:15 +02:00
|
|
|
CreateHostBuilder(args).Build().Run();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static IHostBuilder CreateHostBuilder(string[] args)
|
|
|
|
|
{
|
2020-05-11 15:34:47 +02:00
|
|
|
return Host
|
|
|
|
|
.CreateDefaultBuilder(args)
|
|
|
|
|
.ConfigureWebHostDefaults(webBuilder =>
|
|
|
|
|
{
|
|
|
|
|
webBuilder.UseStartup<Startup>();
|
|
|
|
|
});
|
2020-05-08 18:47:15 +02:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|