29 lines
766 B
C#
29 lines
766 B
C#
using System.IO;
|
|
using Microsoft.AspNetCore.Hosting;
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
namespace Microsoft.eShopWeb
|
|
{
|
|
public class Program
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
var host = new WebHostBuilder()
|
|
.UseKestrel()
|
|
.UseUrls("http://0.0.0.0:5106")
|
|
.UseContentRoot(Directory.GetCurrentDirectory())
|
|
.ConfigureLogging(factory =>
|
|
{
|
|
factory.AddConsole(LogLevel.Warning);
|
|
factory.AddDebug();
|
|
})
|
|
.UseIISIntegration()
|
|
.UseStartup<Startup>()
|
|
.UseApplicationInsights()
|
|
.Build();
|
|
|
|
host.Run();
|
|
}
|
|
}
|
|
}
|