Using the _________ extension method, you can create custom middleware by providing inline middleware logic in the Startup class.

  • UseMiddleware
  • AddMiddleware
  • CreateMiddleware
  • ConfigureMiddleware
In ASP.NET Core, you can create custom middleware by using the UseMiddleware extension method in the Startup class. This method allows you to provide inline middleware logic directly within the Configure method of the Startup class, making it convenient to define middleware as part of your application's configuration.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *