2020-08-08 08:53:35 +02:00
|
|
|
namespace Giants.Web
|
|
|
|
{
|
2022-09-05 22:04:34 +02:00
|
|
|
using Microsoft.AspNetCore.Builder;
|
2020-08-09 01:31:16 +02:00
|
|
|
using Microsoft.AspNetCore.Hosting;
|
|
|
|
using Microsoft.Extensions.Hosting;
|
2022-09-05 22:04:34 +02:00
|
|
|
using Microsoft.Extensions.Logging;
|
2020-08-09 01:31:16 +02:00
|
|
|
|
2020-08-08 08:53:35 +02:00
|
|
|
public class Program
|
|
|
|
{
|
|
|
|
public static void Main(string[] args)
|
|
|
|
{
|
2022-09-05 22:04:34 +02:00
|
|
|
var builder = CreateHostBuilder(args);
|
|
|
|
builder.ConfigureLogging(x => x.AddEventSourceLogger());
|
|
|
|
builder.Build().Run();
|
2020-08-08 08:53:35 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public static IHostBuilder CreateHostBuilder(string[] args) =>
|
|
|
|
Host.CreateDefaultBuilder(args)
|
|
|
|
.ConfigureWebHostDefaults(webBuilder =>
|
|
|
|
{
|
|
|
|
webBuilder.UseStartup<Startup>();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|