mirror of
https://github.com/yawaflua/yaflay.ru.git
synced 2026-02-04 19:04:12 +02:00
18 lines
501 B
C#
18 lines
501 B
C#
using Microsoft.AspNetCore.Hosting;
|
|
using yaflay.ru;
|
|
public class Program
|
|
{
|
|
public static void Main() => CreateHostBuilder()
|
|
.Build()
|
|
.Run();
|
|
private static IHostBuilder CreateHostBuilder()
|
|
{
|
|
return Host.CreateDefaultBuilder()
|
|
.ConfigureWebHostDefaults(webHost => {
|
|
webHost.UseStartup<Startup>();
|
|
webHost.UseStaticWebAssets();
|
|
webHost.UseKestrel(kestrelOptions => { kestrelOptions.ListenAnyIP(80);});
|
|
});
|
|
|
|
}
|
|
} |