awesome-compose/aspnet-mssql/app/aspnetapp/Program.cs
Esteban Solano Granados 6ba8ef4937
Migrate aspnet-mssql sample to .NET 5 🚀 (#143)
* Updated MVC app to .NET 5

Signed-off-by: GitHub <noreply@github.com>

* Added SQL Server health check

Signed-off-by: GitHub <noreply@github.com>

* Updated README.md files with ASP.NET samples

Signed-off-by: GitHub <noreply@github.com>
2021-05-21 17:43:15 +01:00

21 lines
530 B
C#

using System;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using aspnetapp;
using Microsoft.Extensions.Hosting;
class Program
{
public static void Main(string[] args)
{
CreateHostBuilder(args).Build().Run();
}
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();
});
}