Add readme and template base

This commit is contained in:
Dmitriy yawaflua Andreev
2024-07-30 23:01:30 +03:00
parent 72ac5a8429
commit 46714173c8
8 changed files with 229 additions and 154 deletions

View File

@@ -1,25 +1,23 @@
using Microsoft.AspNetCore;
namespace TG_Bot_Template
namespace $safeprojectname$
{
public class Program
{
public static void Main()
{
public static void Main()
CreateHostBuilder()
.Build()
.Run();
}
private static IHostBuilder CreateHostBuilder()
{
return Host.CreateDefaultBuilder()
.ConfigureWebHostDefaults(webHost =>
{
CreateHostBuilder()
.Build()
.Run();
}
private static IHostBuilder CreateHostBuilder()
{
return Host.CreateDefaultBuilder()
.ConfigureWebHostDefaults(webHost => {
webHost.UseStartup<Startup>();
webHost.UseStaticWebAssets();
webHost.UseKestrel(kestrelOptions => { kestrelOptions.ListenAnyIP(80); });
});
webHost.UseStartup<Startup>();
webHost.UseStaticWebAssets();
webHost.UseKestrel(kestrelOptions => { kestrelOptions.ListenAnyIP(80); });
});
}
}
}
}