mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-22 14:02:49 +08:00
Update middlewareinjection.rst (#317)
Class name "OcelotMiddlewareConfiguration" does not exist and "UseOcelot" extension method expects a "OcelotPipelineConfiguration" so i think this documentaiton is outdated.
This commit is contained in:
parent
fa09e4cf7a
commit
3607c0867e
@ -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) =>
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user