I think we should add more details for MapWhen in the middleware section. As it stops executing the rest of the pipeline when the delegate returns true. I do not think this is in the docs and this can be confusing for new people.
Whereas UseWhen will not stop the execution and I can not find in the docs either.
Can I submit PR?
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Possibly a duplicate of (or an add on to) https://github.com/aspnet/AspNetCore.Docs/issues/15497.
Next time Can you create an issue from the doc page? That will connect the doc to the issue. Go to the bottom of the page and select This page .

@Nothing-Works yes, please provide a PR that address this and #4 on #15497
cc @serpent5
The title of this thread should read
Add more details in the middleware section for Map* #15662
instead of
Add more deatils in the middleware section for Map* #15662
I think this can be closed. It was covered in #15497.
Thanks for the response
On Tue, Jan 21, 2020 at 11:19 AM Luke Latham notifications@github.com
wrote:
Closed #15662 https://github.com/aspnet/AspNetCore.Docs/issues/15662.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/aspnet/AspNetCore.Docs/issues/15662?email_source=notifications&email_token=AEIQMN3TWWRWHNILGU5DSJLQ65DE3A5CNFSM4JL273GKYY3PNVWWK3TUL52HS4DFWZEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW5KTDN5WW2ZLOORPWSZGOWDP3SVI#event-2967451989,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AEIQMN7QRSVQPJA47YGJTD3Q65DE3ANCNFSM4JL273GA
.