2017-09-12 13:44:52 +02:00
|
|
|
|
using Microsoft.AspNetCore;
|
|
|
|
|
using Microsoft.AspNetCore.Hosting;
|
2017-09-12 15:39:06 +02:00
|
|
|
|
using Microsoft.eShopOnContainers.Services.Identity;
|
2017-09-12 13:44:52 +02:00
|
|
|
|
using Microsoft.Extensions.Logging;
|
2016-11-24 15:31:33 +01:00
|
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
|
|
namespace eShopOnContainers.Identity
|
|
|
|
|
{
|
|
|
|
|
public class Program
|
|
|
|
|
{
|
|
|
|
|
public static void Main(string[] args)
|
|
|
|
|
{
|
2017-09-12 13:44:52 +02:00
|
|
|
|
BuildWebHost(args).Run();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static IWebHost BuildWebHost(string[] args) =>
|
|
|
|
|
WebHost.CreateDefaultBuilder(args)
|
2016-11-24 15:31:33 +01:00
|
|
|
|
.UseKestrel()
|
2017-03-28 16:16:01 +02:00
|
|
|
|
.UseHealthChecks("/hc")
|
2016-11-24 15:31:33 +01:00
|
|
|
|
.UseContentRoot(Directory.GetCurrentDirectory())
|
2016-12-13 17:20:10 +01:00
|
|
|
|
.UseIISIntegration()
|
2016-11-24 15:31:33 +01:00
|
|
|
|
.UseStartup<Startup>()
|
2017-09-12 13:44:52 +02:00
|
|
|
|
.ConfigureLogging((hostingContext, builder) =>
|
|
|
|
|
{
|
|
|
|
|
builder.AddConfiguration(hostingContext.Configuration.GetSection("Logging"));
|
|
|
|
|
builder.AddConsole();
|
|
|
|
|
builder.AddDebug();
|
|
|
|
|
})
|
2016-11-24 15:31:33 +01:00
|
|
|
|
.Build();
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-09-12 15:39:06 +02:00
|
|
|
|
|