AspNetCore.Docs/aspnetcore/fundamentals/logging/sample/Program.cs

21 lines
449 B
C#

using System.IO;
using Microsoft.AspNetCore.Hosting;
namespace TodoApi
{
public class Program
{
public static void Main(string[] args)
{
var host = new WebHostBuilder()
.UseKestrel()
.UseContentRoot(Directory.GetCurrentDirectory())
.UseIISIntegration()
.UseStartup<Startup>()
.Build();
host.Run();
}
}
}