mirror of
https://github.com/yawaflua/Telegram-Bot-Template.git
synced 2025-12-09 03:49:30 +02:00
Add readme and template base
This commit is contained in:
34
Program.cs
34
Program.cs
@@ -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); });
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user