2024-12-16 15:38:46 +05:00
|
|
|
|
|
|
|
using DD.Persistence.API;
|
2024-12-18 13:13:29 +05:00
|
|
|
using System.Globalization;
|
2024-12-16 15:38:46 +05:00
|
|
|
|
|
|
|
namespace DD.Persistence.App;
|
2024-11-14 15:17:43 +05:00
|
|
|
|
|
|
|
public class Program
|
|
|
|
{
|
|
|
|
public static void Main(string[] args)
|
|
|
|
{
|
2024-12-18 13:13:29 +05:00
|
|
|
CultureInfo uiCulture = CultureInfo.CurrentUICulture;
|
|
|
|
CultureInfo.CurrentUICulture = new CultureInfo("en-EN");
|
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>();
|
2024-12-09 13:19:55 +05:00
|
|
|
});
|
2024-11-14 15:17:43 +05:00
|
|
|
}
|