MvcCoreMvcCoreBuilderExtensions Class¶
- Namespace
Microsoft.Extensions.DependencyInjection- Assemblies
- Microsoft.AspNetCore.Mvc.Core
Syntax¶
public class MvcCoreMvcCoreBuilderExtensions
-
class
Microsoft.Extensions.DependencyInjection.MvcCoreMvcCoreBuilderExtensions
Methods¶
-
AddApplicationPart(Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder, System.Reflection.Assembly)¶ Adds an
Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartto the list ofMicrosoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManager.ApplicationPartson theMicrosoft.Extensions.DependencyInjection.IMvcCoreBuilder.PartManager.Arguments: - builder (Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder) – The
Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder. - assembly (System.Reflection.Assembly) – The
System.Reflection.Assemblyof theMicrosoft.AspNetCore.Mvc.ApplicationParts.ApplicationPart.
Return type: Returns: The
Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder.public static IMvcCoreBuilder AddApplicationPart(this IMvcCoreBuilder builder, Assembly assembly)
- builder (Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder) – The
-
AddAuthorization(Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder)¶ Return type: Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder public static IMvcCoreBuilder AddAuthorization(this IMvcCoreBuilder builder)
-
AddAuthorization(Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder, System.Action<Microsoft.AspNetCore.Authorization.AuthorizationOptions>) Return type: Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder public static IMvcCoreBuilder AddAuthorization(this IMvcCoreBuilder builder, Action<AuthorizationOptions> setupAction)
-
AddControllersAsServices(Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder)¶ Registers discovered controllers as services in the
Microsoft.Extensions.DependencyInjection.IServiceCollection.public static IMvcCoreBuilder AddControllersAsServices(this IMvcCoreBuilder builder)
-
AddFormatterMappings(Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder)¶ Return type: Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder public static IMvcCoreBuilder AddFormatterMappings(this IMvcCoreBuilder builder)
-
AddFormatterMappings(Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder, System.Action<Microsoft.AspNetCore.Mvc.Formatters.FormatterMappings>) Return type: Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder public static IMvcCoreBuilder AddFormatterMappings(this IMvcCoreBuilder builder, Action<FormatterMappings> setupAction)
-
AddMvcOptions(Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder, System.Action<Microsoft.AspNetCore.Mvc.MvcOptions>)¶ Registers an action to configure
Microsoft.AspNetCore.Mvc.MvcOptions.Arguments: - builder (Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder) – The
Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder. - setupAction (System.Action<Microsoft.AspNetCore.Mvc.MvcOptions>) – An
System.Action`1.
Return type: Returns: The
Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder.public static IMvcCoreBuilder AddMvcOptions(this IMvcCoreBuilder builder, Action<MvcOptions> setupAction)
- builder (Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder) – The
-
ConfigureApplicationPartManager(Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder, System.Action<Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManager>)¶ Configures the
Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManagerof theMicrosoft.Extensions.DependencyInjection.IMvcCoreBuilder.PartManagerusing the givenSystem.Action`1.Arguments: - builder (Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder) – The
Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder. - setupAction (System.Action<Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartManager>) – The
System.Action`1
Return type: Returns: The
Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder.public static IMvcCoreBuilder ConfigureApplicationPartManager(this IMvcCoreBuilder builder, Action<ApplicationPartManager> setupAction)
- builder (Microsoft.Extensions.DependencyInjection.IMvcCoreBuilder) – The
-