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