27 lines
662 B
C#
27 lines
662 B
C#
using System.IO;
|
|
using System.Threading.Tasks;
|
|
using Microsoft.AspNetCore.Hosting;
|
|
using Microsoft.Extensions.Hosting;
|
|
|
|
namespace EchoApp
|
|
{
|
|
public class Program
|
|
{
|
|
public static Task Main(string[] args)
|
|
{
|
|
var host = new HostBuilder()
|
|
.ConfigureWebHost(webHostBuilder =>
|
|
{
|
|
webHostBuilder
|
|
.UseKestrel()
|
|
.UseContentRoot(Directory.GetCurrentDirectory())
|
|
.UseIISIntegration()
|
|
.UseStartup<Startup>();
|
|
})
|
|
.Build();
|
|
|
|
return host.RunAsync();
|
|
}
|
|
}
|
|
}
|