Ooui-tws-port/PlatformSamples/AspNetCoreMvc/Program.cs

28 lines
761 B
C#
Raw Normal View History

2017-11-10 02:54:50 +00:00
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
2021-05-09 18:27:13 +00:00
using Microsoft.Extensions.Hosting;
2017-11-10 02:54:50 +00:00
using Microsoft.Extensions.Logging;
namespace AspNetCoreMvc
{
public class Program
{
public static void Main (string[] args)
2017-11-10 02:54:50 +00:00
{
2021-05-09 18:27:13 +00:00
CreateHostBuilder (args).Build ().Run ();
2017-11-10 02:54:50 +00:00
}
2021-05-09 18:27:13 +00:00
public static IHostBuilder CreateHostBuilder (string[] args) =>
Host.CreateDefaultBuilder (args)
.ConfigureWebHostDefaults (webBuilder => {
webBuilder.UseStartup<Startup> ();
});
2017-11-10 02:54:50 +00:00
}
}