mirror of
				https://github.com/nsnail/Ocelot.git
				synced 2025-11-04 14:10:50 +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:
		@@ -9,7 +9,7 @@ and override middleware. This is done as follos.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
.. code-block:: csharp
 | 
					.. code-block:: csharp
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    var configuration = new OcelotMiddlewareConfiguration
 | 
					    var configuration = new OcelotPipelineConfiguration
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
        PreErrorResponderMiddleware = async (ctx, next) =>
 | 
					        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.
 | 
					* 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
 | 
					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.
 | 
					after as Ocelot does not call the next middleware.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user