mirror of
https://github.com/rjNemo/ticket_manager
synced 2026-06-06 08:46:39 +00:00
31 lines
969 B
C#
31 lines
969 B
C#
using Microsoft.AspNetCore.Hosting;
|
|
using Microsoft.Extensions.Configuration;
|
|
using Microsoft.Extensions.Hosting;
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
namespace TicketManager
|
|
{
|
|
#pragma warning disable CS1591
|
|
public class Program
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
CreateHostBuilder(args).Build().Run();
|
|
}
|
|
|
|
public static IHostBuilder CreateHostBuilder(string[] args) =>
|
|
Host.CreateDefaultBuilder(args)
|
|
.ConfigureWebHostDefaults(webBuilder =>
|
|
{
|
|
webBuilder.UseStartup<Startup>();
|
|
});
|
|
// .ConfigureLogging((context, logging) =>
|
|
// {
|
|
// logging.ClearProviders();
|
|
// logging.AddConfiguration(context.Configuration.GetSection("Logging"));
|
|
// logging.AddDebug();
|
|
// logging.AddConsole();
|
|
// });
|
|
}
|
|
#pragma warning restore CS1591
|
|
}
|