forked from ddrilling/AsbCloudServer
27 lines
790 B
C#
27 lines
790 B
C#
using Microsoft.AspNetCore.Hosting;
|
|
using Microsoft.Extensions.Hosting;
|
|
|
|
namespace AsbCloudWebApi
|
|
{
|
|
public class Program
|
|
{
|
|
// Uncomment next line to find wired exceptions by tracing.
|
|
//static TraceListenerView trace4debug = new TraceListenerView();
|
|
enum A { a = 1 << 2 }
|
|
|
|
public static void Main(string[] args)
|
|
{
|
|
var host = CreateHostBuilder(args).Build();
|
|
AsbCloudInfrastructure.Startup.BeforeRunHandler(host);
|
|
host.Run();
|
|
}
|
|
|
|
public static IHostBuilder CreateHostBuilder(string[] args) =>
|
|
Host.CreateDefaultBuilder(args)
|
|
.ConfigureWebHostDefaults(webBuilder =>
|
|
{
|
|
webBuilder.UseStartup<Startup>();
|
|
});
|
|
}
|
|
}
|