2021-04-02 17:28:07 +05:00
|
|
|
using Microsoft.AspNetCore.Hosting;
|
|
|
|
using Microsoft.Extensions.Hosting;
|
|
|
|
|
|
|
|
namespace AsbCloudWebApi
|
|
|
|
{
|
|
|
|
public class Program
|
|
|
|
{
|
2022-04-11 18:00:34 +05:00
|
|
|
// Uncomment next line to find wired exceptions by tracing.
|
|
|
|
//static TraceListenerView trace4debug = new TraceListenerView();
|
2021-04-02 17:28:07 +05:00
|
|
|
public static void Main(string[] args)
|
|
|
|
{
|
2022-01-17 15:33:00 +05:00
|
|
|
var host = CreateHostBuilder(args).Build();
|
2022-12-02 14:49:00 +05:00
|
|
|
AsbCloudInfrastructure.Startup.BeforeRunHandler(host);
|
2022-01-17 15:33:00 +05:00
|
|
|
host.Run();
|
2021-04-02 17:28:07 +05:00
|
|
|
}
|
|
|
|
|
|
|
|
public static IHostBuilder CreateHostBuilder(string[] args) =>
|
|
|
|
Host.CreateDefaultBuilder(args)
|
|
|
|
.ConfigureWebHostDefaults(webBuilder =>
|
|
|
|
{
|
|
|
|
webBuilder.UseStartup<Startup>();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|