25 lines
723 B
C#
25 lines
723 B
C#
|
using Microsoft.AspNetCore;
|
|||
|
using Microsoft.AspNetCore.Hosting;
|
|||
|
using Microsoft.Extensions.Logging;
|
|||
|
|
|||
|
namespace Ordering.BackgroundTasks
|
|||
|
{
|
|||
|
public class Program
|
|||
|
{
|
|||
|
public static void Main(string[] args)
|
|||
|
{
|
|||
|
BuildWebHost(args).Run();
|
|||
|
}
|
|||
|
|
|||
|
public static IWebHost BuildWebHost(string[] args) =>
|
|||
|
WebHost.CreateDefaultBuilder(args)
|
|||
|
.UseStartup<Startup>()
|
|||
|
.ConfigureLogging((hostingContext, builder) =>
|
|||
|
{
|
|||
|
builder.AddConfiguration(hostingContext.Configuration.GetSection("Logging"));
|
|||
|
builder.AddDebug();
|
|||
|
builder.AddConsole();
|
|||
|
}).Build();
|
|||
|
}
|
|||
|
}
|