6ba8ef4937
* 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>
21 lines
530 B
C#
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>();
|
|
});
|
|
} |