From 3607c0867e6159849ce235c0b6b3c461c3dddf1c Mon Sep 17 00:00:00 2001 From: Louis B Date: Tue, 17 Apr 2018 20:27:16 +0200 Subject: [PATCH] Update middlewareinjection.rst (#317) Class name "OcelotMiddlewareConfiguration" does not exist and "UseOcelot" extension method expects a "OcelotPipelineConfiguration" so i think this documentaiton is outdated. --- docs/features/middlewareinjection.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/features/middlewareinjection.rst b/docs/features/middlewareinjection.rst index f25cfa26..44f44fb3 100644 --- a/docs/features/middlewareinjection.rst +++ b/docs/features/middlewareinjection.rst @@ -9,7 +9,7 @@ and override middleware. This is done as follos. .. code-block:: csharp - var configuration = new OcelotMiddlewareConfiguration + var configuration = new OcelotPipelineConfiguration { PreErrorResponderMiddleware = async (ctx, next) => { @@ -38,4 +38,4 @@ The user can set functions against the following. * PreQueryStringBuilderMiddleware - This alows the user to manipulate the query string on the http request before it is passed to Ocelots request creator. Obviously you can just add middleware as normal before the call to app.UseOcelot() It cannot be added -after as Ocelot does not call the next middleware. \ No newline at end of file +after as Ocelot does not call the next middleware.