ASP.Net Core project added
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
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>();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user