3 implementations of IMvcBuilder
Microsoft.AspNetCore.Mvc.Core (1)
DependencyInjection\MvcBuilder.cs (1)
11
internal sealed class MvcBuilder :
IMvcBuilder
Microsoft.AspNetCore.Mvc.Localization.Test (1)
MvcLocalizationMvcBuilderExtensionsTest.cs (1)
130
private class TestMvcBuilder :
IMvcBuilder
RazorBuildWebSite (1)
StartupWithHostingStartup.cs (1)
49
private class MockMvcBuilder :
IMvcBuilder
223 references to IMvcBuilder
ControllersFromServicesWebSite (1)
Startup.cs (1)
16
var
builder = services
Microsoft.AspNetCore.Identity.FunctionalTests (1)
Infrastructure\ServerFactory.cs (1)
97
var
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>
31
public static
IMvcBuilder
AddMvc(this IServiceCollection services)
44
/// <returns>An <see cref="
IMvcBuilder
"/> that can be used to further configure the MVC services.</returns>
46
public static
IMvcBuilder
AddMvc(this IServiceCollection services, Action<MvcOptions> setupAction)
51
var
builder = services.AddMvc();
62
/// <returns>An <see cref="
IMvcBuilder
"/> that can be used to further configure the MVC services.</returns>
83
public static
IMvcBuilder
AddControllers(this IServiceCollection services)
97
/// <returns>An <see cref="
IMvcBuilder
"/> that can be used to further configure the MVC services.</returns>
118
public 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>
176
public static
IMvcBuilder
AddControllersWithViews(this IServiceCollection services)
190
/// <returns>An <see cref="
IMvcBuilder
"/> that can be used to further configure the MVC services.</returns>
209
public 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>
257
public static
IMvcBuilder
AddRazorPages(this IServiceCollection services)
270
/// <returns>An <see cref="
IMvcBuilder
"/> that can be used to further configure the MVC services.</returns>
288
public 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>
26
public static
IMvcBuilder
AddMvcOptions(
27
this
IMvcBuilder
builder,
41
/// <param name="builder">The <see cref="
IMvcBuilder
"/>.</param>
43
/// <returns>The <see cref="
IMvcBuilder
"/>.</returns>
44
public static
IMvcBuilder
AddJsonOptions(
45
this
IMvcBuilder
builder,
58
/// <param name="builder">The <see cref="
IMvcBuilder
"/>.</param>
60
/// <returns>The <see cref="
IMvcBuilder
"/>.</returns>
61
public static
IMvcBuilder
AddFormatterMappings(
62
this
IMvcBuilder
builder,
74
/// <see cref="
IMvcBuilder
.PartManager"/>.
76
/// <param name="builder">The <see cref="
IMvcBuilder
"/>.</param>
78
/// <returns>The <see cref="
IMvcBuilder
"/>.</returns>
79
public 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>
103
public static
IMvcBuilder
ConfigureApplicationPartManager(
104
this
IMvcBuilder
builder,
118
/// <param name="builder">The <see cref="
IMvcBuilder
"/>.</param>
119
/// <returns>The <see cref="
IMvcBuilder
"/>.</returns>
120
public static
IMvcBuilder
AddControllersAsServices(this
IMvcBuilder
builder)
140
/// <param name="builder">The <see cref="
IMvcBuilder
"/>.</param>
142
/// <returns>The <see cref="
IMvcBuilder
"/>.</returns>
146
public static
IMvcBuilder
SetCompatibilityVersion(this
IMvcBuilder
builder, CompatibilityVersion version)
157
/// <param name="builder">The <see cref="
IMvcBuilder
"/>.</param>
159
/// <returns>The <see cref="
IMvcBuilder
"/>.</returns>
160
public static
IMvcBuilder
ConfigureApiBehaviorOptions(
161
this
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>
18
void 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>
18
public static
IMvcBuilder
AddDataAnnotationsLocalization(this
IMvcBuilder
builder)
28
/// <param name="builder">The <see cref="
IMvcBuilder
"/>.</param>
31
/// <returns>The <see cref="
IMvcBuilder
"/>.</returns>
32
public static
IMvcBuilder
AddDataAnnotationsLocalization(
33
this
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>
21
public static
IMvcBuilder
AddXmlOptions(
22
this
IMvcBuilder
builder,
35
/// <param name="builder">The <see cref="
IMvcBuilder
"/>.</param>
36
/// <returns>The <see cref="
IMvcBuilder
"/>.</returns>
37
public static
IMvcBuilder
AddXmlDataContractSerializerFormatters(this
IMvcBuilder
builder)
48
/// <param name="builder">The <see cref="
IMvcBuilder
"/>.</param>
50
/// <returns>The <see cref="
IMvcBuilder
"/>.</returns>
51
public static
IMvcBuilder
AddXmlDataContractSerializerFormatters(
52
this
IMvcBuilder
builder,
66
/// <param name="builder">The <see cref="
IMvcBuilder
"/>.</param>
67
/// <returns>The <see cref="
IMvcBuilder
"/>.</returns>
68
public static
IMvcBuilder
AddXmlSerializerFormatters(this
IMvcBuilder
builder)
79
/// <param name="builder">The <see cref="
IMvcBuilder
"/>.</param>
81
/// <returns>The <see cref="
IMvcBuilder
"/>.</returns>
82
public static
IMvcBuilder
AddXmlSerializerFormatters(
83
this
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>
21
public static
IMvcBuilder
AddViewLocalization(this
IMvcBuilder
builder)
31
/// <param name="builder">The <see cref="
IMvcBuilder
"/>.</param>
33
/// <returns>The <see cref="
IMvcBuilder
"/>.</returns>
34
public static
IMvcBuilder
AddViewLocalization(
35
this
IMvcBuilder
builder,
47
/// <param name="builder">The <see cref="
IMvcBuilder
"/>.</param>
49
/// <returns>The <see cref="
IMvcBuilder
"/>.</returns>
50
public static
IMvcBuilder
AddViewLocalization(
51
this
IMvcBuilder
builder,
63
/// <param name="builder">The <see cref="
IMvcBuilder
"/>.</param>
66
/// <returns>The <see cref="
IMvcBuilder
"/>.</returns>
67
public static
IMvcBuilder
AddViewLocalization(
68
this
IMvcBuilder
builder,
81
/// <param name="builder">The <see cref="
IMvcBuilder
"/>.</param>
82
/// <returns>The <see cref="
IMvcBuilder
"/>.</returns>
88
public static
IMvcBuilder
AddMvcLocalization(this
IMvcBuilder
builder)
102
/// <param name="builder">The <see cref="
IMvcBuilder
"/>.</param>
104
/// <returns>The <see cref="
IMvcBuilder
"/>.</returns>
110
public static
IMvcBuilder
AddMvcLocalization(
111
this
IMvcBuilder
builder,
126
/// <param name="builder">The <see cref="
IMvcBuilder
"/>.</param>
128
/// <returns>The <see cref="
IMvcBuilder
"/>.</returns>
134
public static
IMvcBuilder
AddMvcLocalization(
135
this
IMvcBuilder
builder,
150
/// <param name="builder">The <see cref="
IMvcBuilder
"/>.</param>
154
/// <returns>The <see cref="
IMvcBuilder
"/>.</returns>
160
public static
IMvcBuilder
AddMvcLocalization(
161
this
IMvcBuilder
builder,
177
/// <param name="builder">The <see cref="
IMvcBuilder
"/>.</param>
180
/// <returns>The <see cref="
IMvcBuilder
"/>.</returns>
186
public static
IMvcBuilder
AddMvcLocalization(
187
this
IMvcBuilder
builder,
202
/// <param name="builder">The <see cref="
IMvcBuilder
"/>.</param>
207
/// <returns>The <see cref="
IMvcBuilder
"/>.</returns>
213
public static
IMvcBuilder
AddMvcLocalization(
214
this
IMvcBuilder
builder,
230
/// <param name="builder">The <see cref="
IMvcBuilder
"/>.</param>
234
/// <returns>The <see cref="
IMvcBuilder
"/>.</returns>
240
public static
IMvcBuilder
AddMvcLocalization(
241
this
IMvcBuilder
builder,
257
/// <param name="builder">The <see cref="
IMvcBuilder
"/>.</param>
263
/// <returns>The <see cref="
IMvcBuilder
"/>.</returns>
269
public static
IMvcBuilder
AddMvcLocalization(
270
this
IMvcBuilder
builder,
Microsoft.AspNetCore.Mvc.Localization.Test (3)
MvcLocalizationMvcBuilderExtensionsTest.cs (3)
17
public static TheoryData<
IMvcBuilder
> MvcBuilderExtensionsData()
33
return new TheoryData<
IMvcBuilder
>()
41
public 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>
18
public static
IMvcBuilder
AddNewtonsoftJson(this
IMvcBuilder
builder)
29
/// <param name="builder">The <see cref="
IMvcBuilder
"/>.</param>
31
/// <returns>The <see cref="
IMvcBuilder
"/>.</returns>
32
public static
IMvcBuilder
AddNewtonsoftJson(
33
this
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>
21
public static
IMvcBuilder
AddRazorOptions(
22
this
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>
38
public 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>
57
public static
IMvcBuilder
InitializeTagHelper<TTagHelper>(
58
this
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>
18
public 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>
32
public 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>
21
public static
IMvcBuilder
AddRazorPagesOptions(
22
this
IMvcBuilder
builder,
37
/// <returns>The <see cref="
IMvcBuilder
"/>.</returns>
38
public static
IMvcBuilder
WithRazorPagesRoot(this
IMvcBuilder
builder, string rootDirectory)
56
/// <returns>The <see cref="
IMvcBuilder
"/>.</returns>
57
public 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>
35
public static
IMvcBuilder
AddCacheTagHelperLimits(this
IMvcBuilder
builder, Action<CacheTagHelperOptions> configure)
Microsoft.AspNetCore.Mvc.Test (1)
MvcServiceCollectionExtensionsTest.cs (1)
447
var
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>
25
public static
IMvcBuilder
AddViewOptions(
26
this
IMvcBuilder
builder,
39
/// <param name="builder">The <see cref="
IMvcBuilder
"/>.</param>
40
/// <returns>The <see cref="
IMvcBuilder
"/>.</returns>
41
public static
IMvcBuilder
AddViewComponentsAsServices(this
IMvcBuilder
builder)
62
/// <param name="builder">The <see cref="
IMvcBuilder
"/>.</param>
63
/// <returns>The <see cref="
IMvcBuilder
"/>.</returns>
64
public static
IMvcBuilder
AddSessionStateTempDataProvider(this
IMvcBuilder
builder)
81
/// <param name="builder">The <see cref="
IMvcBuilder
"/>.</param>
82
/// <returns>The <see cref="
IMvcBuilder
"/>.</returns>
83
public static
IMvcBuilder
AddCookieTempDataProvider(this
IMvcBuilder
builder)
100
/// <param name="builder">The <see cref="
IMvcBuilder
"/>.</param>
105
/// <returns>The <see cref="
IMvcBuilder
"/>.</returns>
106
public static
IMvcBuilder
AddCookieTempDataProvider(
107
this
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)
17
var
builder = services.AddControllers();
RazorPagesWebSite (1)
StartupWithBasePath.cs (1)
22
var
builder = services.AddMvc()