2020-02-18 08:32:06 +01:00
|
|
|
using Microsoft.AspNetCore.Hosting;
|
|
|
|
|
using Microsoft.Extensions.Hosting;
|
2020-09-17 09:59:13 +02:00
|
|
|
using Microsoft.Extensions.Logging;
|
2020-03-13 18:44:58 +11:00
|
|
|
using Umbraco.Core.Composing;
|
2020-02-18 08:32:06 +01:00
|
|
|
|
2020-08-11 08:28:16 +02:00
|
|
|
namespace Umbraco.Web.UI.NetCore
|
2020-02-18 08:32:06 +01:00
|
|
|
{
|
|
|
|
|
public class Program
|
|
|
|
|
{
|
|
|
|
|
public static void Main(string[] args)
|
|
|
|
|
{
|
2020-02-24 11:26:34 +01:00
|
|
|
CreateHostBuilder(args)
|
|
|
|
|
.Build()
|
|
|
|
|
.Run();
|
2020-02-18 08:32:06 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static IHostBuilder CreateHostBuilder(string[] args) =>
|
2020-03-24 12:11:46 +11:00
|
|
|
Host.CreateDefaultBuilder(args)
|
2020-09-17 09:59:13 +02:00
|
|
|
.ConfigureLogging(x =>
|
|
|
|
|
{
|
|
|
|
|
x.ClearProviders();
|
|
|
|
|
})
|
2020-12-16 01:54:49 +00:00
|
|
|
.ConfigureWebHostDefaults(webBuilder => { webBuilder.UseStartup<Startup>(); });
|
2020-02-18 08:32:06 +01:00
|
|
|
}
|
|
|
|
|
}
|