3 implementations of IMvcBuilder
Microsoft.AspNetCore.Mvc.Core (1)
DependencyInjection\MvcBuilder.cs (1)
11internal sealed class MvcBuilder : IMvcBuilder
Microsoft.AspNetCore.Mvc.Localization.Test (1)
MvcLocalizationMvcBuilderExtensionsTest.cs (1)
130private class TestMvcBuilder : IMvcBuilder
RazorBuildWebSite (1)
StartupWithHostingStartup.cs (1)
49private class MockMvcBuilder : IMvcBuilder
223 references to IMvcBuilder
ControllersFromServicesWebSite (1)
Startup.cs (1)
16var builder = services
Microsoft.AspNetCore.Identity.FunctionalTests (1)
Infrastructure\ServerFactory.cs (1)
97var mvcBuilder = services
Microsoft.AspNetCore.Mvc (17)
MvcServiceCollectionExtensions.cs (17)
29/// <returns>An <see cref="IMvcBuilder"/> that can be used to further configure the MVC services.</returns> 31public static IMvcBuilder AddMvc(this IServiceCollection services) 44/// <returns>An <see cref="IMvcBuilder"/> that can be used to further configure the MVC services.</returns> 46public static IMvcBuilder AddMvc(this IServiceCollection services, Action<MvcOptions> setupAction) 51var builder = services.AddMvc(); 62/// <returns>An <see cref="IMvcBuilder"/> that can be used to further configure the MVC services.</returns> 83public static IMvcBuilder AddControllers(this IServiceCollection services) 97/// <returns>An <see cref="IMvcBuilder"/> that can be used to further configure the MVC services.</returns> 118public static IMvcBuilder AddControllers(this IServiceCollection services, Action<MvcOptions>? configure) 157/// <returns>An <see cref="IMvcBuilder"/> that can be used to further configure the MVC services.</returns> 176public static IMvcBuilder AddControllersWithViews(this IServiceCollection services) 190/// <returns>An <see cref="IMvcBuilder"/> that can be used to further configure the MVC services.</returns> 209public static IMvcBuilder AddControllersWithViews(this IServiceCollection services, Action<MvcOptions>? configure) 239/// <returns>An <see cref="IMvcBuilder"/> that can be used to further configure the MVC services.</returns> 257public static IMvcBuilder AddRazorPages(this IServiceCollection services) 270/// <returns>An <see cref="IMvcBuilder"/> that can be used to further configure the MVC services.</returns> 288public static IMvcBuilder AddRazorPages(this IServiceCollection services, Action<RazorPagesOptions>? configure)
Microsoft.AspNetCore.Mvc.Core (48)
CompatibilityVersion.cs (1)
18/// Setting the compatibility version using <see cref="IMvcBuilder"/>:
Controllers\ControllerFeature.cs (1)
12/// using the <see cref="ApplicationPartManager"/> that is available during startup at <see cref="IMvcBuilder.PartManager"/>
DependencyInjection\MvcCoreMvcBuilderExtensions.cs (35)
16/// Extensions for configuring MVC using an <see cref="IMvcBuilder"/>. 23/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 25/// <returns>The <see cref="IMvcBuilder"/>.</returns> 26public static IMvcBuilder AddMvcOptions( 27this IMvcBuilder builder, 41/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 43/// <returns>The <see cref="IMvcBuilder"/>.</returns> 44public static IMvcBuilder AddJsonOptions( 45this IMvcBuilder builder, 58/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 60/// <returns>The <see cref="IMvcBuilder"/>.</returns> 61public static IMvcBuilder AddFormatterMappings( 62this IMvcBuilder builder, 74/// <see cref="IMvcBuilder.PartManager"/>. 76/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 78/// <returns>The <see cref="IMvcBuilder"/>.</returns> 79public static IMvcBuilder AddApplicationPart(this IMvcBuilder builder, Assembly assembly) 97/// Configures the <see cref="ApplicationPartManager"/> of the <see cref="IMvcBuilder.PartManager"/> using 100/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 102/// <returns>The <see cref="IMvcBuilder"/>.</returns> 103public static IMvcBuilder ConfigureApplicationPartManager( 104this IMvcBuilder builder, 118/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 119/// <returns>The <see cref="IMvcBuilder"/>.</returns> 120public static IMvcBuilder AddControllersAsServices(this IMvcBuilder builder) 140/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 142/// <returns>The <see cref="IMvcBuilder"/>.</returns> 146public static IMvcBuilder SetCompatibilityVersion(this IMvcBuilder builder, CompatibilityVersion version) 157/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 159/// <returns>The <see cref="IMvcBuilder"/>.</returns> 160public static IMvcBuilder ConfigureApiBehaviorOptions( 161this IMvcBuilder builder,
DependencyInjection\MvcCoreMvcCoreBuilderExtensions.cs (5)
42/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 44/// <returns>The <see cref="IMvcBuilder"/>.</returns> 59/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 60/// <returns>The <see cref="IMvcBuilder"/>.</returns> 72/// <returns>The <see cref="IMvcBuilder"/>.</returns>
IDesignTimeMvcBuilderConfiguration.cs (5)
9/// Configures the <see cref="IMvcBuilder"/>. Implement this interface to enable design-time configuration 10/// (for instance during pre-compilation of views) of <see cref="IMvcBuilder"/>. 15/// Configures the <see cref="IMvcBuilder"/>. 17/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 18void ConfigureMvc(IMvcBuilder builder);
Infrastructure\MvcCompatibilityOptions.cs (1)
15/// calling <see cref="MvcCoreMvcBuilderExtensions.SetCompatibilityVersion(IMvcBuilder, CompatibilityVersion)"/>
Microsoft.AspNetCore.Mvc.DataAnnotations (13)
DependencyInjection\MvcDataAnnotationsMvcBuilderExtensions.cs (8)
16/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 17/// <returns>The <see cref="IMvcBuilder"/>.</returns> 18public static IMvcBuilder AddDataAnnotationsLocalization(this IMvcBuilder builder) 28/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 31/// <returns>The <see cref="IMvcBuilder"/>.</returns> 32public static IMvcBuilder AddDataAnnotationsLocalization( 33this IMvcBuilder builder,
DependencyInjection\MvcDataAnnotationsMvcCoreBuilderExtensions.cs (5)
12/// Extensions for configuring MVC data annotations using an <see cref="IMvcBuilder"/>. 19/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 20/// <returns>The <see cref="IMvcBuilder"/>.</returns> 45/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 47/// <returns>The <see cref="IMvcBuilder"/>.</returns>
Microsoft.AspNetCore.Mvc.Formatters.Xml (19)
DependencyInjection\MvcXmlMvcBuilderExtensions.cs (19)
19/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 21public static IMvcBuilder AddXmlOptions( 22this IMvcBuilder builder, 35/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 36/// <returns>The <see cref="IMvcBuilder"/>.</returns> 37public static IMvcBuilder AddXmlDataContractSerializerFormatters(this IMvcBuilder builder) 48/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 50/// <returns>The <see cref="IMvcBuilder"/>.</returns> 51public static IMvcBuilder AddXmlDataContractSerializerFormatters( 52this IMvcBuilder builder, 66/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 67/// <returns>The <see cref="IMvcBuilder"/>.</returns> 68public static IMvcBuilder AddXmlSerializerFormatters(this IMvcBuilder builder) 79/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 81/// <returns>The <see cref="IMvcBuilder"/>.</returns> 82public static IMvcBuilder AddXmlSerializerFormatters( 83this IMvcBuilder builder,
Microsoft.AspNetCore.Mvc.Localization (48)
DependencyInjection\MvcLocalizationMvcBuilderExtensions.cs (48)
19/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 20/// <returns>The <see cref="IMvcBuilder"/>.</returns> 21public static IMvcBuilder AddViewLocalization(this IMvcBuilder builder) 31/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 33/// <returns>The <see cref="IMvcBuilder"/>.</returns> 34public static IMvcBuilder AddViewLocalization( 35this IMvcBuilder builder, 47/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 49/// <returns>The <see cref="IMvcBuilder"/>.</returns> 50public static IMvcBuilder AddViewLocalization( 51this IMvcBuilder builder, 63/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 66/// <returns>The <see cref="IMvcBuilder"/>.</returns> 67public static IMvcBuilder AddViewLocalization( 68this IMvcBuilder builder, 81/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 82/// <returns>The <see cref="IMvcBuilder"/>.</returns> 88public static IMvcBuilder AddMvcLocalization(this IMvcBuilder builder) 102/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 104/// <returns>The <see cref="IMvcBuilder"/>.</returns> 110public static IMvcBuilder AddMvcLocalization( 111this IMvcBuilder builder, 126/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 128/// <returns>The <see cref="IMvcBuilder"/>.</returns> 134public static IMvcBuilder AddMvcLocalization( 135this IMvcBuilder builder, 150/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 154/// <returns>The <see cref="IMvcBuilder"/>.</returns> 160public static IMvcBuilder AddMvcLocalization( 161this IMvcBuilder builder, 177/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 180/// <returns>The <see cref="IMvcBuilder"/>.</returns> 186public static IMvcBuilder AddMvcLocalization( 187this IMvcBuilder builder, 202/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 207/// <returns>The <see cref="IMvcBuilder"/>.</returns> 213public static IMvcBuilder AddMvcLocalization( 214this IMvcBuilder builder, 230/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 234/// <returns>The <see cref="IMvcBuilder"/>.</returns> 240public static IMvcBuilder AddMvcLocalization( 241this IMvcBuilder builder, 257/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 263/// <returns>The <see cref="IMvcBuilder"/>.</returns> 269public static IMvcBuilder AddMvcLocalization( 270this IMvcBuilder builder,
Microsoft.AspNetCore.Mvc.Localization.Test (3)
MvcLocalizationMvcBuilderExtensionsTest.cs (3)
17public static TheoryData<IMvcBuilder> MvcBuilderExtensionsData() 33return new TheoryData<IMvcBuilder>() 41public void AddsRequiredServices(IMvcBuilder mvcBuilder)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (9)
DependencyInjection\NewtonsoftJsonMvcBuilderExtensions.cs (9)
9/// Extensions methods for configuring MVC via an <see cref="IMvcBuilder"/>. 16/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 17/// <returns>The <see cref="IMvcBuilder"/>.</returns> 18public static IMvcBuilder AddNewtonsoftJson(this IMvcBuilder builder) 29/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 31/// <returns>The <see cref="IMvcBuilder"/>.</returns> 32public static IMvcBuilder AddNewtonsoftJson( 33this IMvcBuilder builder,
Microsoft.AspNetCore.Mvc.Razor (14)
DependencyInjection\MvcRazorMvcBuilderExtensions.cs (13)
11/// Extensions methods for configuring MVC via an <see cref="IMvcBuilder"/>. 18/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 20/// <returns>The <see cref="IMvcBuilder"/>.</returns> 21public static IMvcBuilder AddRazorOptions( 22this IMvcBuilder builder, 36/// <param name="builder">The <see cref="IMvcBuilder"/> instance this method extends.</param> 37/// <returns>The <see cref="IMvcBuilder"/> instance this method extends.</returns> 38public static IMvcBuilder AddTagHelpersAsServices(this IMvcBuilder builder) 54/// <param name="builder">The <see cref="IMvcBuilder"/> instance this method extends.</param> 56/// <returns>The <see cref="IMvcBuilder"/> instance this method extends.</returns> 57public static IMvcBuilder InitializeTagHelper<TTagHelper>( 58this IMvcBuilder builder,
TagHelpers\TagHelperFeature.cs (1)
12/// using the <see cref="ApplicationPartManager"/> that is available during startup at <see cref="IMvcBuilder.PartManager"/>
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (10)
DependencyInjection\RazorRuntimeCompilationMvcBuilderExtensions.cs (10)
14/// Configures <see cref="IMvcBuilder" /> to support runtime compilation of Razor views and Razor Pages. 16/// <param name="builder">The <see cref="IMvcBuilder" />.</param> 17/// <returns>The <see cref="IMvcBuilder"/>.</returns> 18public static IMvcBuilder AddRazorRuntimeCompilation(this IMvcBuilder builder) 27/// Configures <see cref="IMvcBuilder" /> to support runtime compilation of Razor views and Razor Pages. 29/// <param name="builder">The <see cref="IMvcBuilder" />.</param> 31/// <returns>The <see cref="IMvcBuilder"/>.</returns> 32public static IMvcBuilder AddRazorRuntimeCompilation(this IMvcBuilder builder, Action<MvcRazorRuntimeCompilationOptions> setupAction)
Microsoft.AspNetCore.Mvc.RazorPages (11)
DependencyInjection\MvcRazorPagesMvcBuilderExtensions.cs (11)
11/// Extensions methods for configuring Razor Pages via an <see cref="IMvcBuilder"/>. 18/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 20/// <returns>The <see cref="IMvcBuilder"/>.</returns> 21public static IMvcBuilder AddRazorPagesOptions( 22this IMvcBuilder builder, 37/// <returns>The <see cref="IMvcBuilder"/>.</returns> 38public static IMvcBuilder WithRazorPagesRoot(this IMvcBuilder builder, string rootDirectory) 56/// <returns>The <see cref="IMvcBuilder"/>.</returns> 57public static IMvcBuilder WithRazorPagesAtContentRoot(this IMvcBuilder builder)
Microsoft.AspNetCore.Mvc.TagHelpers (4)
DependencyInjection\TagHelperExtensions.cs (4)
32/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 34/// <returns>The <see cref="IMvcBuilder"/>.</returns> 35public static IMvcBuilder AddCacheTagHelperLimits(this IMvcBuilder builder, Action<CacheTagHelperOptions> configure)
Microsoft.AspNetCore.Mvc.Test (1)
MvcServiceCollectionExtensionsTest.cs (1)
447var builder = services.AddMvc();
Microsoft.AspNetCore.Mvc.ViewFeatures (22)
DependencyInjection\MvcViewFeaturesMvcBuilderExtensions.cs (21)
13/// Extensions methods for configuring MVC via an <see cref="IMvcBuilder"/>. 20/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 24/// <returns>The <see cref="IMvcBuilder"/>.</returns> 25public static IMvcBuilder AddViewOptions( 26this IMvcBuilder builder, 39/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 40/// <returns>The <see cref="IMvcBuilder"/>.</returns> 41public static IMvcBuilder AddViewComponentsAsServices(this IMvcBuilder builder) 62/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 63/// <returns>The <see cref="IMvcBuilder"/>.</returns> 64public static IMvcBuilder AddSessionStateTempDataProvider(this IMvcBuilder builder) 81/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 82/// <returns>The <see cref="IMvcBuilder"/>.</returns> 83public static IMvcBuilder AddCookieTempDataProvider(this IMvcBuilder builder) 100/// <param name="builder">The <see cref="IMvcBuilder"/>.</param> 105/// <returns>The <see cref="IMvcBuilder"/>.</returns> 106public static IMvcBuilder AddCookieTempDataProvider( 107this IMvcBuilder builder,
ViewComponents\ViewComponentFeature.cs (1)
12/// using the <see cref="ApplicationPartManager"/> that is available during startup at <see cref="IMvcBuilder.PartManager"/>
Mvc.RoutingWebSite (1)
StartupForRouteGroupsWithMetadata.cs (1)
17var builder = services.AddControllers();
RazorPagesWebSite (1)
StartupWithBasePath.cs (1)
22var builder = services.AddMvc()