AspNetCore.Docs/aspnetcore/migration/22-to-30/samples/Program2.2.cs

19 lines
446 B
C#

using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
namespace WebAPI
{
#region snippet
public class Program
{
public static void Main(string[] args)
{
CreateWebHostBuilder(args).Build().Run();
}
public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
WebHost.CreateDefaultBuilder(args)
.UseStartup<Startup>();
}
#endregion
}