mirror of
				https://github.com/nsnail/Ocelot.git
				synced 2025-11-04 16:10:50 +08:00 
			
		
		
		
	fixed weird error
This commit is contained in:
		@@ -10,6 +10,7 @@ namespace Ocelot.UnitTests.Middleware
 | 
				
			|||||||
    using Microsoft.Extensions.Configuration;
 | 
					    using Microsoft.Extensions.Configuration;
 | 
				
			||||||
    using Microsoft.Extensions.DependencyInjection;
 | 
					    using Microsoft.Extensions.DependencyInjection;
 | 
				
			||||||
    using Ocelot.DependencyInjection;
 | 
					    using Ocelot.DependencyInjection;
 | 
				
			||||||
 | 
					    using Ocelot.Logging;
 | 
				
			||||||
    using Ocelot.Middleware;
 | 
					    using Ocelot.Middleware;
 | 
				
			||||||
    using Ocelot.Middleware.Pipeline;
 | 
					    using Ocelot.Middleware.Pipeline;
 | 
				
			||||||
    using Shouldly;
 | 
					    using Shouldly;
 | 
				
			||||||
@@ -100,6 +101,7 @@ namespace Ocelot.UnitTests.Middleware
 | 
				
			|||||||
            private readonly OcelotRequestDelegate _next;
 | 
					            private readonly OcelotRequestDelegate _next;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            public MultiParametersInvokeMiddleware(OcelotRequestDelegate next)
 | 
					            public MultiParametersInvokeMiddleware(OcelotRequestDelegate next)
 | 
				
			||||||
 | 
					                :base(new FakeLogger())
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
                _next = next;
 | 
					                _next = next;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
@@ -110,4 +112,31 @@ namespace Ocelot.UnitTests.Middleware
 | 
				
			|||||||
            }
 | 
					            }
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    class FakeLogger : IOcelotLogger
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					        public void LogCritical(string message, Exception exception)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public void LogDebug(string message)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public void LogError(string message, Exception exception)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public void LogInformation(string message)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public void LogTrace(string message)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        public void LogWarning(string message)
 | 
				
			||||||
 | 
					        {
 | 
				
			||||||
 | 
					        }
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user