2020-02-18 08:32:06 +01:00
|
|
|
using Microsoft.AspNetCore.Hosting;
|
2021-03-10 15:22:45 +11:00
|
|
|
using Microsoft.Extensions.Configuration;
|
2020-02-18 08:32:06 +01:00
|
|
|
using Microsoft.Extensions.Hosting;
|
2020-09-17 09:59:13 +02:00
|
|
|
using Microsoft.Extensions.Logging;
|
2020-02-18 08:32:06 +01:00
|
|
|
|
2021-08-18 11:23:19 +02:00
|
|
|
namespace Umbraco.Cms.Web.UI
|
2020-02-18 08:32:06 +01:00
|
|
|
{
|
|
|
|
|
public class Program
|
|
|
|
|
{
|
|
|
|
|
public static void Main(string[] args)
|
2021-03-10 15:22:45 +11:00
|
|
|
=> CreateHostBuilder(args)
|
2020-02-24 11:26:34 +01:00
|
|
|
.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)
|
2021-03-10 15:22:45 +11:00
|
|
|
#if DEBUG
|
|
|
|
|
.ConfigureAppConfiguration(config
|
|
|
|
|
=> config.AddJsonFile(
|
|
|
|
|
"appsettings.Local.json",
|
|
|
|
|
optional: true,
|
|
|
|
|
reloadOnChange: true))
|
|
|
|
|
#endif
|
|
|
|
|
.ConfigureLogging(x => x.ClearProviders())
|
|
|
|
|
.ConfigureWebHostDefaults(webBuilder => webBuilder.UseStartup<Startup>());
|
2020-02-18 08:32:06 +01:00
|
|
|
}
|
|
|
|
|
}
|