fix reference to sample code method
Small typo in the reference to the 'UseExceptionHandler' method in the Startup.cs sample code.pull/644/merge
parent
fc9bf9080a
commit
2ce281bb2e
|
@ -37,7 +37,7 @@ You can see an example of setting up a request pipeline, using a variety of requ
|
|||
:dedent: 8
|
||||
:emphasize-lines: 12-14,20,27,30,33
|
||||
|
||||
Because of the order in which this pipeline was constructed, the middleware configured by the ``UseErrorHandler`` method will catch any exceptions that occur in later calls (in non-development environments). Also, in this example a design decision has been made that static files will not be protected by any authentication. This is a tradeoff that improves performance when handling static files since no other middleware (such as authentication middleware) needs to be called when handling these requests (ASP.NET 5 uses a specific ``wwwroot`` folder for all files that should be accessible by default, so there is typically no need to perform authentication before sending these files). If the request is not for a static file, it will flow to the next piece of middleware defined in the pipeline (in this case, Identity). Learn more about :doc:`static-files`.
|
||||
Because of the order in which this pipeline was constructed, the middleware configured by the ``UseExceptionHandler`` method will catch any exceptions that occur in later calls (in non-development environments). Also, in this example a design decision has been made that static files will not be protected by any authentication. This is a tradeoff that improves performance when handling static files since no other middleware (such as authentication middleware) needs to be called when handling these requests (ASP.NET 5 uses a specific ``wwwroot`` folder for all files that should be accessible by default, so there is typically no need to perform authentication before sending these files). If the request is not for a static file, it will flow to the next piece of middleware defined in the pipeline (in this case, Identity). Learn more about :doc:`static-files`.
|
||||
|
||||
.. note:: **Remember:** the order in which you arrange your ``Use[Middleware]`` statements in your application's ``Configure`` method is very important. Be sure you have a good understanding of how your application's request pipeline will behave in various scenarios.
|
||||
|
||||
|
|
Loading…
Reference in New Issue