using BlueWest.Views;
namespace BlueWest.WebApi
{
///
/// Entry point of the application.
///
public class Program
{
///
/// Host Interface of the application.
///
public static IHost MainHost { get; private set; }
///
/// Entry point of the application
///
/// Command line arguments.
public static void Main(string[] args)
{
MainHost = CreateHostBuilder(args)
.UseContentRoot(Directory.GetCurrentDirectory())
.Build();
MainHost.Run();
}
private static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup();
});
}
}