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.
Loading...
Related Quiz
- When creating a new ASP.NET Core project, what does the "API" template primarily configure the project for?
- The method _________ in UserManager is used to sign in a user programmatically after the user has been created.
- What is the primary distinction between Visual Studio and Visual Studio Code?
- Which feature of ASP.NET Core allows real-time communication between the server and connected clients?
- What is the role of the "wwwroot" directory in an ASP.NET Core project?