Show / Hide Table of Contents

Class AbpAspNetCoreMvcApplicationBuilderExtensions

Inheritance
System.Object
AbpAspNetCoreMvcApplicationBuilderExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Microsoft.AspNetCore.Builder
Assembly: Volo.Abp.AspNetCore.Mvc.dll
Syntax
public static class AbpAspNetCoreMvcApplicationBuilderExtensions

Methods

UseMvcWithDefaultRouteAndArea(IApplicationBuilder, Action<IEndpointRouteBuilder>)

Adds MVC to the Microsoft.AspNetCore.Builder.IApplicationBuilder request execution pipeline with the following default routes:

  • a default route named 'defaultWithArea' and the following template: '{area}/{controller=Home}/{action=Index}/{id?}'.
  • a default route named 'default' and the following template: '{controller=Home}/{action=Index}/{id?}'.
Declaration
[Obsolete("Use app.UseConfiguredEndpoints(...) extension method instead!")]
public static IApplicationBuilder UseMvcWithDefaultRouteAndArea(this IApplicationBuilder app, Action<IEndpointRouteBuilder> additionalConfigurationAction = null)
Parameters
Type Name Description
IApplicationBuilder app

The Microsoft.AspNetCore.Builder.IApplicationBuilder.

System.Action<IEndpointRouteBuilder> additionalConfigurationAction

Additional action to configure routes

Returns
Type Description
IApplicationBuilder

A reference to this instance after the operation has completed.

Back to top Powered by Volosoft