2024-11-14 15:17:43 +05:00
|
|
|
|
|
|
|
namespace Persistence.API;
|
|
|
|
|
|
|
|
public class Program
|
|
|
|
{
|
|
|
|
public static void Main(string[] args)
|
|
|
|
{
|
|
|
|
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>();
|
|
|
|
});
|
|
|
|
}
|