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) =>
|
2018-01-30 17:42:00 +00:00
|
|
|
|
WebHost
|
|
|
|
|
.CreateDefaultBuilder(args)
|
2018-01-29 15:58:08 +00:00
|
|
|
|
.ConfigureAppConfiguration(cb =>
|
|
|
|
|
{
|
2018-01-30 17:42:00 +00:00
|
|
|
|
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
|
|
|
|
})
|
2018-01-30 17:42:00 +00:00
|
|
|
|
.UseStartup<Startup>()
|
2018-01-26 16:09:36 +00:00
|
|
|
|
.Build();
|
|
|
|
|
}
|
|
|
|
|
}
|