38 lines
1.0 KiB
C#
38 lines
1.0 KiB
C#
|
using Microsoft.AspNetCore.Hosting;
|
|||
|
using Microsoft.Extensions.Hosting;
|
|||
|
using Microsoft.Extensions.Logging;
|
|||
|
using NLog.Web;
|
|||
|
|
|||
|
namespace FAuth
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
/// </summary>
|
|||
|
public class Program
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
/// </summary>
|
|||
|
/// <param name="args"></param>
|
|||
|
public static void Main(string[] args) {
|
|||
|
CreateHostBuilder(args).Build().Run();
|
|||
|
}
|
|||
|
/// <summary>
|
|||
|
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
/// </summary>
|
|||
|
/// <param name="args"></param>
|
|||
|
/// <returns></returns>
|
|||
|
public static IHostBuilder CreateHostBuilder(string[] args) =>
|
|||
|
Host.CreateDefaultBuilder(args)
|
|||
|
.ConfigureWebHostDefaults(webBuilder => {
|
|||
|
webBuilder.UseStartup<Startup>();
|
|||
|
})
|
|||
|
.ConfigureLogging(c => {
|
|||
|
c.ClearProviders();
|
|||
|
c.SetMinimumLevel(LogLevel.Trace);
|
|||
|
})
|
|||
|
.UseNLog();
|
|||
|
|
|||
|
}
|
|||
|
}
|