Extend data service

This commit is contained in:
hydrant
2020-03-08 20:12:37 +01:00
parent 7c2c5ce04e
commit 22e5115f3b
6 changed files with 41 additions and 10 deletions

View File

@@ -21,15 +21,11 @@ namespace ReallifeGamemode.DataService
public static IWebHost BuildWebHost(string[] args)
{
return WebHost.CreateDefaultBuilder(args)
.ConfigureLogging((ctx, l) =>
.ConfigureLogging((ctx, builder) =>
{
l.AddLog4Net(Path.Combine(ctx.HostingEnvironment.ContentRootPath, "log4net.config"));
builder.AddLog4Net(Path.Combine(ctx.HostingEnvironment.ContentRootPath, "log4net.config"));
})
.UseStartup<Startup>()
.UseKestrel(k =>
{
k.Listen(IPAddress.Any, 5000);
})
.Build();
}
}