MvcCoreMvcCoreBuilderExtensions Class

Definition

Extensions for configuring MVC using an IMvcCoreBuilder.

public static class MvcCoreMvcCoreBuilderExtensions
type MvcCoreMvcCoreBuilderExtensions = class
Public Module MvcCoreMvcCoreBuilderExtensions
Inheritance
MvcCoreMvcCoreBuilderExtensions

Methods

AddApplicationPart(IMvcCoreBuilder, Assembly)

Adds an ApplicationPart to the list of ApplicationParts on the PartManager.

AddAuthorization(IMvcCoreBuilder)

Configures authentication and authorization services for builder.

AddAuthorization(IMvcCoreBuilder, Action<AuthorizationOptions>)

Configures authentication and authorization services for builder.

AddControllersAsServices(IMvcCoreBuilder)

Registers discovered controllers as services in the IServiceCollection.

AddFormatterMappings(IMvcCoreBuilder)

Adds services to support FormatterMappings.

AddFormatterMappings(IMvcCoreBuilder, Action<FormatterMappings>)

Configures FormatterMappings for the specified setupAction.

AddJsonOptions(IMvcCoreBuilder, Action<JsonOptions>)

Configures JsonOptions for the specified builder.

AddMvcOptions(IMvcCoreBuilder, Action<MvcOptions>)

Registers an action to configure MvcOptions.

ConfigureApiBehaviorOptions(IMvcCoreBuilder, Action<ApiBehaviorOptions>)

Configures ApiBehaviorOptions.

ConfigureApplicationPartManager(IMvcCoreBuilder, Action<ApplicationPartManager>)

Configures the ApplicationPartManager of the PartManager using the given Action<T>.

SetCompatibilityVersion(IMvcCoreBuilder, CompatibilityVersion)
Obsolete.

Sets the CompatibilityVersion for ASP.NET Core MVC for the application.

Applies to