Files
laatzen/LaaProductionWeb/LaaProductionWebCore/Program.cs
T

31 lines
1.2 KiB
C#

namespace LaaProductionWebCore
{
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
/// <summary>
/// Application startup class contining the <seealso cref="Program.Main(string[])"/> method.
/// </summary>
public class Program
{
/// <summary>
/// Default start point for the application.
/// </summary>
/// <param name="args"><see cref="string[]"/> arguments provided from server on application start.</param>
public static void Main(string[] args)
=> CreateWebHostBuilder(args)
.Build()
.Run();
/// <summary>
/// !Important do not refactor. This method is used from other frameworks, like EntityFramework.
/// </summary>
/// <param name="args"><see cref="string[]"/> arguments provided from for creating the <seealso cref="WebHost"/>.</param>
/// <returns>Created and configured <see cref="IWebHostBuilder"/>.</returns>
public static IWebHostBuilder CreateWebHostBuilder(string[] args)
=> WebHost
.CreateDefaultBuilder(args)
.UseStartup<Startup>();
}
}