When a URL is matched by the Map method, it follows the branch and no longer passes through the middleware components on the main path through the pipeline. The same middleware can be used in different parts of the pipelineWhen a URL is matched by the Map method, it follows the branch and no longer passes through the middleware components on the main path through the pipeline. The same middleware can be used in different parts of the pipeline
Spread the love

De Map-methode wordt gebruikt om een ​​sectie van de Pipeline te maken die wordt gebruikt om verzoeken voor specifieke URL’s te verwerken, waardoor een afzonderlijke reeks ontstaat van middlewarecomponenten.

The first argument to the Map method specifies the string that will be used to match URLs. The second argument is the branch of the pipeline, to which middleware components are added with the Use and UseMiddleware methods. The statements in create a branch that is used for URLs that start with /branch and that pass requests through the QueryStringMiddleware class defined in, and the statements define a middleware lambda expression that adds a message to the response. The effect of the branch on the request pipeline.

The first argument to the Map method specifies the string that will be used to match URLs. The second argument is the 
branch of the pipeline, to which middleware components are added with the Use and UseMiddleware methods.

Door alfons

Geef een reactie

Je e-mailadres wordt niet gepubliceerd. Vereiste velden zijn gemarkeerd met *