mirror of
https://github.com/yawaflua/Telegram-Bot-Template.git
synced 2025-12-09 03:49:30 +02:00
Fix errors and add commas,
This commit is contained in:
18
Program.cs
18
Program.cs
@@ -1,15 +1,25 @@
|
||||
|
||||
using Microsoft.AspNetCore;
|
||||
|
||||
namespace TG_Bot_Template
|
||||
{
|
||||
public class Program
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
public static void Main()
|
||||
{
|
||||
new WebHostBuilder()
|
||||
.UseKestrel(k => k.ListenAnyIP(80))
|
||||
.UseStartup<Startup>()
|
||||
CreateHostBuilder()
|
||||
.Build()
|
||||
.Run();
|
||||
}
|
||||
private static IHostBuilder CreateHostBuilder()
|
||||
{
|
||||
return Host.CreateDefaultBuilder()
|
||||
.ConfigureWebHostDefaults(webHost => {
|
||||
webHost.UseStartup<Startup>();
|
||||
webHost.UseStaticWebAssets();
|
||||
webHost.UseKestrel(kestrelOptions => { kestrelOptions.ListenAnyIP(80); });
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user