2022-09-26 04:05:23 +03:00
|
|
|
|
|
|
|
|
2022-10-30 19:48:24 +03:00
|
|
|
using CodeLiturgy.Views;
|
2022-09-19 05:50:15 +03:00
|
|
|
|
2022-09-29 02:37:24 +03:00
|
|
|
namespace BlueWest.WebApi
|
2022-09-27 20:12:13 +03:00
|
|
|
{
|
2022-09-29 02:37:24 +03:00
|
|
|
/// <summary>
|
|
|
|
/// Entry point of the application.
|
|
|
|
/// </summary>
|
|
|
|
public class Program
|
|
|
|
{
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Host Interface of the application.
|
|
|
|
/// </summary>
|
|
|
|
public static IHost MainHost { get; private set; }
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Entry point of the application
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="args">Command line arguments.</param>
|
|
|
|
public static void Main(string[] args)
|
|
|
|
{
|
|
|
|
MainHost = CreateHostBuilder(args)
|
|
|
|
.UseContentRoot(Directory.GetCurrentDirectory())
|
|
|
|
.Build();
|
2022-10-27 20:13:02 +03:00
|
|
|
|
2022-09-29 02:37:24 +03:00
|
|
|
MainHost.Run();
|
2022-09-19 05:50:15 +03:00
|
|
|
|
2022-09-29 02:37:24 +03:00
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
private static IHostBuilder CreateHostBuilder(string[] args) =>
|
|
|
|
Host.CreateDefaultBuilder(args)
|
2022-11-17 02:46:58 +03:00
|
|
|
.UseSystemd()
|
2022-09-29 02:37:24 +03:00
|
|
|
.ConfigureWebHostDefaults(webBuilder =>
|
|
|
|
{
|
|
|
|
webBuilder.UseStartup<Startup>();
|
|
|
|
});
|
|
|
|
}
|
2022-09-19 05:50:15 +03:00
|
|
|
}
|