mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-22 06:22:50 +08:00
fixed weird error
This commit is contained in:
parent
035f8f1123
commit
d7ef956935
@ -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)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user