persistence/DD.Persistence.App/Program.cs

25 lines
646 B
C#
Raw Normal View History

using DD.Persistence.API;
2024-12-18 13:13:29 +05:00
using System.Globalization;
namespace DD.Persistence.App;
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");
var host = CreateHostBuilder(args).Build();
Startup.BeforeRunHandler(host);
host.Run();
}
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();
});
}