2017-02-23 09:34:00 -08:00
|
|
|
|
using Microsoft.AspNetCore.Builder;
|
2016-09-06 17:09:19 -07:00
|
|
|
|
using Microsoft.AspNetCore.Hosting;
|
2017-02-23 09:34:00 -08:00
|
|
|
|
using System.IO;
|
2016-09-06 17:09:19 -07:00
|
|
|
|
|
2016-09-07 13:52:26 -07:00
|
|
|
|
namespace Microsoft.eShopOnContainers.Services.Basket.API
|
2016-09-06 17:09:19 -07:00
|
|
|
|
{
|
|
|
|
|
public class Program
|
|
|
|
|
{
|
|
|
|
|
public static void Main(string[] args)
|
|
|
|
|
{
|
|
|
|
|
var host = new WebHostBuilder()
|
|
|
|
|
.UseKestrel()
|
2017-03-23 19:10:55 +01:00
|
|
|
|
.UseHealthChecks("/hc")
|
2016-09-06 17:09:19 -07:00
|
|
|
|
.UseContentRoot(Directory.GetCurrentDirectory())
|
2016-12-14 18:23:57 +01:00
|
|
|
|
.UseIISIntegration()
|
2016-09-06 17:09:19 -07:00
|
|
|
|
.UseStartup<Startup>()
|
|
|
|
|
.Build();
|
|
|
|
|
|
|
|
|
|
host.Run();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|