SMAPI/src/SMAPI.Web/Program.cs

28 lines
792 B
C#
Raw Permalink Normal View History

2017-08-14 05:44:00 +08:00
using Microsoft.AspNetCore.Hosting;
2020-05-08 10:41:37 +08:00
using Microsoft.Extensions.Hosting;
2017-08-14 05:44:00 +08:00
2017-09-22 11:39:12 +08:00
namespace StardewModdingAPI.Web
2017-08-14 05:44:00 +08:00
{
/// <summary>The main app entry point.</summary>
2017-08-14 05:44:00 +08:00
public class Program
{
/*********
** Public methods
*********/
/// <summary>The main app entry point.</summary>
/// <param name="args">The command-line arguments.</param>
2017-08-14 05:44:00 +08:00
public static void Main(string[] args)
{
2020-05-08 10:41:37 +08:00
Host
2017-11-27 07:31:04 +08:00
.CreateDefaultBuilder(args)
2020-05-08 10:41:37 +08:00
.ConfigureWebHostDefaults(builder => builder
.CaptureStartupErrors(true)
.UseSetting("detailedErrors", "true")
.UseStartup<Startup>()
)
.Build()
.Run();
2017-08-14 05:44:00 +08:00
}
}
}