2024-11-14 15:17:43 +05:00
|
|
|
|
2024-11-21 17:02:36 +05:00
|
|
|
using Persistence.Models;
|
|
|
|
|
2024-11-14 15:17:43 +05:00
|
|
|
namespace Persistence.API;
|
|
|
|
|
|
|
|
public class Program
|
|
|
|
{
|
|
|
|
public static void Main(string[] args)
|
|
|
|
{
|
2024-11-21 17:02:36 +05:00
|
|
|
|
2024-11-14 15:17:43 +05:00
|
|
|
var host = CreateHostBuilder(args).Build();
|
2024-11-15 16:29:15 +05:00
|
|
|
Startup.BeforeRunHandler(host);
|
2024-11-14 15:17:43 +05:00
|
|
|
host.Run();
|
|
|
|
}
|
|
|
|
|
|
|
|
public static IHostBuilder CreateHostBuilder(string[] args) =>
|
|
|
|
Host.CreateDefaultBuilder(args)
|
|
|
|
.ConfigureWebHostDefaults(webBuilder =>
|
|
|
|
{
|
|
|
|
webBuilder.UseStartup<Startup>();
|
|
|
|
});
|
|
|
|
}
|