persistence/DD.Persistence.App/Program.cs

23 lines
492 B
C#
Raw Normal View History

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