1
0
mirror of https://github.com/ncblakely/GiantsTools synced 2024-11-21 21:55:38 +01:00
GiantsTools/Giants.WebApi/Program.cs

25 lines
709 B
C#
Raw Normal View History

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
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();
}
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();
});
}
}