mirror of
				https://github.com/nsnail/Ocelot.git
				synced 2025-11-04 10:35:28 +08:00 
			
		
		
		
	added cache back in
This commit is contained in:
		@@ -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 =>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user