This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Which is a true statement about custom middleware?
Custom middleware is always added to the request pipeline after the built-in middleware.
Custom middleware can't be added to the request pipeline after the built-in middleware.
Custom middleware can only be added to the request pipeline before the built-in middleware.
Custom middleware can be added anywhere in the request pipeline.
Which is true of app.Run()?
app.Run()
app.Run() is terminal middleware.
Delegates passed to app.Run() don't have access to the next middleware in the pipeline.
app.Run() by itself (with no delegates) should be the last middleware in the pipeline.
All of these choices are true.
Which is true of app.Use()?
app.Use()
Delegates added with app.Use() may be terminal or nonterminal.
Delegates passed to app.Use() don't have access to the next middleware in the pipeline.
app.Use() by itself (with no delegates) should be the last middleware in the pipeline.
You must answer all questions before checking your work.
Was this page helpful?