37 lines
1.1 KiB
C#
Raw Normal View History

2018-01-26 16:09:36 +00:00
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
2018-02-15 17:30:39 +01:00
namespace Microsoft.eShopOnContainers.Mobile.Shopping.HttpAggregator
2018-01-26 16:09:36 +00:00
{
public class Program
{
public static void Main(string[] args)
{
BuildWebHost(args).Run();
}
public static IWebHost BuildWebHost(string[] args) =>
WebHost
.CreateDefaultBuilder(args)
2018-01-29 15:58:08 +00:00
.ConfigureAppConfiguration(cb =>
{
var sources = cb.Sources;
sources.Insert(3, new Microsoft.Extensions.Configuration.Json.JsonConfigurationSource()
{
Optional = true,
Path = "appsettings.localhost.json",
ReloadOnChange = false
});
2018-01-29 15:58:08 +00:00
})
.UseStartup<Startup>()
2018-01-26 16:09:36 +00:00
.Build();
}
}