mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-22 06:42:50 +08:00
added cache back in
This commit is contained in:
parent
66a1bfc257
commit
66bc6203ad
@ -617,7 +617,17 @@ namespace Ocelot.IntegrationTests
|
|||||||
})
|
})
|
||||||
.ConfigureServices(x =>
|
.ConfigureServices(x =>
|
||||||
{
|
{
|
||||||
|
Action<ConfigurationBuilderCachePart> settings = (s) =>
|
||||||
|
{
|
||||||
|
s.WithMicrosoftLogging(log =>
|
||||||
|
{
|
||||||
|
log.AddConsole(LogLevel.Debug);
|
||||||
|
})
|
||||||
|
.WithDictionaryHandle();
|
||||||
|
};
|
||||||
|
|
||||||
x.AddOcelot()
|
x.AddOcelot()
|
||||||
|
.AddCacheManager(settings)
|
||||||
.AddAdministration("/administration", "secret");
|
.AddAdministration("/administration", "secret");
|
||||||
})
|
})
|
||||||
.Configure(app =>
|
.Configure(app =>
|
||||||
|
@ -113,7 +113,17 @@ namespace Ocelot.IntegrationTests
|
|||||||
})
|
})
|
||||||
.ConfigureServices(x =>
|
.ConfigureServices(x =>
|
||||||
{
|
{
|
||||||
|
Action<ConfigurationBuilderCachePart> settings = (s) =>
|
||||||
|
{
|
||||||
|
s.WithMicrosoftLogging(log =>
|
||||||
|
{
|
||||||
|
log.AddConsole(LogLevel.Debug);
|
||||||
|
})
|
||||||
|
.WithDictionaryHandle();
|
||||||
|
};
|
||||||
|
|
||||||
x.AddOcelot()
|
x.AddOcelot()
|
||||||
|
.AddCacheManager(settings)
|
||||||
.AddAdministration("/administration", "secret");
|
.AddAdministration("/administration", "secret");
|
||||||
})
|
})
|
||||||
.Configure(app =>
|
.Configure(app =>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user