mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-19 03:38:16 +08:00
unit tests pass...
This commit is contained in:
@ -26,6 +26,7 @@ namespace Ocelot.ManualTest
|
||||
}
|
||||
|
||||
public IConfigurationRoot Configuration { get; }
|
||||
public IServiceCollection Services { get; private set; }
|
||||
|
||||
public void ConfigureServices(IServiceCollection services)
|
||||
{
|
||||
@ -39,13 +40,14 @@ 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().Wait();
|
||||
app.UseOcelot(Services).Wait();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user