mirror of
https://github.com/yawaflua/yaflay.ru.git
synced 2025-12-08 19:49:36 +02:00
28 lines
689 B
C#
28 lines
689 B
C#
using Microsoft.AspNetCore.Hosting;
|
|
using Microsoft.Extensions.Configuration;
|
|
using yawaflua.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);});
|
|
});
|
|
|
|
}
|
|
}
|
|
public static class StaticProgram
|
|
{
|
|
public static bool isNull(this object? value) =>
|
|
value == null;
|
|
|
|
} |