2017-08-29 11:17:09 +02:00
|
|
|
|
using Microsoft.AspNetCore;
|
2017-04-28 15:04:38 +02:00
|
|
|
|
using Microsoft.AspNetCore.Builder;
|
|
|
|
|
using Microsoft.AspNetCore.Hosting;
|
2017-08-29 11:17:09 +02:00
|
|
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
|
using System.IO;
|
2017-04-28 15:04:38 +02:00
|
|
|
|
|
|
|
|
|
namespace Payment.API
|
|
|
|
|
{
|
|
|
|
|
public class Program
|
|
|
|
|
{
|
|
|
|
|
public static void Main(string[] args)
|
|
|
|
|
{
|
2017-08-29 11:17:09 +02:00
|
|
|
|
BuildWebHost(args).Run();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static IWebHost BuildWebHost(string[] args) =>
|
|
|
|
|
WebHost.CreateDefaultBuilder(args)
|
|
|
|
|
|
2017-04-28 15:04:38 +02:00
|
|
|
|
.UseContentRoot(Directory.GetCurrentDirectory())
|
|
|
|
|
.UseStartup<Startup>()
|
2017-08-29 11:17:09 +02:00
|
|
|
|
.ConfigureLogging((hostingContext, builder) =>
|
|
|
|
|
{
|
|
|
|
|
builder.AddConfiguration(hostingContext.Configuration.GetSection("Logging"));
|
|
|
|
|
builder.AddConsole();
|
|
|
|
|
builder.AddDebug();
|
|
|
|
|
}).Build();
|
2017-04-28 15:04:38 +02:00
|
|
|
|
}
|
|
|
|
|
}
|