tidy up and no longer hard code admin area...still one int test failing before we start looking at rebuilding auth stuff

This commit is contained in:
Tom Gardham-Pallister
2017-10-29 16:35:12 +00:00
parent 24c018721f
commit b28fc6694e
6 changed files with 13 additions and 20 deletions

View File

@ -26,7 +26,6 @@ namespace Ocelot.ManualTest
}
public IConfigurationRoot Configuration { get; }
public IServiceCollection Services { get; private set; }
public void ConfigureServices(IServiceCollection services)
{
@ -40,14 +39,13 @@ namespace Ocelot.ManualTest
};
services.AddOcelot(Configuration, settings);
Services = services;
}
public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
{
loggerFactory.AddConsole(Configuration.GetSection("Logging"));
app.UseOcelot(Services).Wait();
app.UseOcelot().Wait();
}
}
}