mirror of
https://github.com/yawaflua/yaflay.ru.git
synced 2025-12-09 20:19:32 +02:00
18 lines
502 B
C#
18 lines
502 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); });
|
|
});
|
|
|
|
}
|
|
} |