MvcApplicationBuilderExtensions Class

Definition

Extension methods for IApplicationBuilder to add MVC to the request execution pipeline.

public static class MvcApplicationBuilderExtensions
Inheritance
MvcApplicationBuilderExtensions

Methods

UseMvc(IApplicationBuilder)

Adds MVC to the IApplicationBuilder request execution pipeline.

UseMvc(IApplicationBuilder, Action<IRouteBuilder>)

Adds MVC to the IApplicationBuilder request execution pipeline.

UseMvcWithDefaultRoute(IApplicationBuilder)

Adds MVC to the IApplicationBuilder request execution pipeline with a default route named 'default' and the following template: '{controller=Home}/{action=Index}/{id?}'.