58 references to ApplicationParts
BasicWebSite (1)
Controllers\HomeController.cs (1)
132.ApplicationParts
ControllersFromServicesWebSite (3)
Startup.cs (3)
18.ConfigureApplicationPartManager(manager => manager.ApplicationParts.Clear()) 22manager.ApplicationParts.Add(new TypesPart( 29manager.ApplicationParts.Add(part);
Microsoft.AspNetCore.Identity.FunctionalTests (5)
Infrastructure\ServerFactory.cs (5)
127for (var i = 0; i < manager.ApplicationParts.Count; i++) 129var part = manager.ApplicationParts[i]; 135manager.ApplicationParts.Remove(part); 145if (!manager.ApplicationParts.Any(p => p.GetType() == part.GetType() && 148manager.ApplicationParts.Add(part);
Microsoft.AspNetCore.Identity.UI (1)
IdentityBuilderUIExtensions.cs (1)
54apm.ApplicationParts.Add(part);
Microsoft.AspNetCore.Mvc (4)
MvcServiceCollectionExtensions.cs (4)
326if (!partManager.ApplicationParts.OfType<AssemblyPart>().Any(p => p.Assembly == mvcTagHelpersAssembly)) 328partManager.ApplicationParts.Add(new FrameworkAssemblyPart(mvcTagHelpersAssembly)); 332if (!partManager.ApplicationParts.OfType<AssemblyPart>().Any(p => p.Assembly == mvcRazorAssembly)) 334partManager.ApplicationParts.Add(new FrameworkAssemblyPart(mvcRazorAssembly));
Microsoft.AspNetCore.Mvc.Core (7)
ApplicationParts\ApplicationPartManager.cs (2)
47provider.PopulateFeature(ApplicationParts, feature); 70ApplicationParts.Add(applicationPart);
ApplicationParts\IApplicationFeatureProviderOfT.cs (1)
20/// are stored in <see cref="ApplicationPartManager.ApplicationParts"/>. This ordering may be used by the feature
DependencyInjection\MvcCoreMvcBuilderExtensions.cs (2)
73/// Adds an <see cref="ApplicationPart"/> to the list of <see cref="ApplicationPartManager.ApplicationParts"/> on the 89manager.ApplicationParts.Add(applicationPart);
DependencyInjection\MvcCoreMvcCoreBuilderExtensions.cs (2)
155/// Adds an <see cref="ApplicationPart"/> to the list of <see cref="ApplicationPartManager.ApplicationParts"/> on the 171manager.ApplicationParts.Add(applicationPart);
Microsoft.AspNetCore.Mvc.Core.Test (14)
ApplicationModels\ControllerActionDescriptorProviderTests.cs (1)
1384manager.ApplicationParts.Add(new TestApplicationPart(controllerTypes));
ApplicationModels\EndpointMetadataProviderTest.cs (1)
239manager.ApplicationParts.Add(new TestApplicationPart(controllerType));
ApplicationParts\ApplicationPartManagerTest.cs (5)
13manager.ApplicationParts.Add(new ControllersPart("ControllersPartA")); 14manager.ApplicationParts.Add(new ViewComponentsPart("ViewComponentsPartB")); 15manager.ApplicationParts.Add(new ControllersPart("ControllersPartC")); 42manager.ApplicationParts.Add(new ControllersPart("ControllersPart")); 63manager.ApplicationParts.Add(new ViewComponentsPart("ViewComponentsPart"));
Controllers\ControllerFeatureProviderTest.cs (1)
386manager.ApplicationParts.Add(new TestApplicationPart(types));
DependencyInjection\MvcBuilderExtensionsTest.cs (2)
117manager.ApplicationParts.Add(new TestApplicationPart(typeof(ControllerOne), typeof(ControllerTwo))); 171manager.ApplicationParts.Add(new TestApplicationPart(types));
DependencyInjection\MvcCoreServiceCollectionExtensionsTest.cs (3)
160Assert.Empty(builder.PartManager.ApplicationParts); 184Assert.Empty(builder.PartManager.ApplicationParts); 207builder.PartManager.ApplicationParts,
Infrastructure\ActionSelectorTest.cs (1)
1018manager.ApplicationParts.Add(new TestApplicationPart(controllerTypes));
Microsoft.AspNetCore.Mvc.FunctionalTests (2)
AntiforgeryMiddlewareTest.cs (2)
274partManager.ApplicationParts.Clear(); 275partManager.ApplicationParts.Add(new SelectedControllersApplicationParts(controllerTypes));
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
RazorReferenceManager.cs (1)
56foreach (var part in _partManager.ApplicationParts)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (2)
RazorReferenceManagerTest.cs (1)
45applicationPartManager.ApplicationParts.Add(part.Object);
RuntimeViewCompilerTest.cs (1)
856applicationPartManager.ApplicationParts.Add(new AssemblyPart(assembly));
Microsoft.AspNetCore.Mvc.Razor.Test (6)
DependencyInjection\MvcRazorMvcBuilderExtensionsTest.cs (2)
20manager.ApplicationParts.Add(new TestApplicationPart()); 39manager.ApplicationParts.Add(new TestApplicationPart(
DependencyInjection\MvcRazorMvcCoreBuilderExtensionsTest.cs (4)
26Assert.Empty(builder.PartManager.ApplicationParts); 49Assert.Empty(builder.PartManager.ApplicationParts); 61manager.ApplicationParts.Add(new TestApplicationPart()); 79manager.ApplicationParts.Add(new TestApplicationPart(
Microsoft.AspNetCore.Mvc.Test (6)
MvcServiceCollectionExtensionsTest.cs (6)
315Assert.Equal(2, manager.ApplicationParts.Count); 316Assert.Single(manager.ApplicationParts.OfType<AssemblyPart>(), p => p.Assembly == mvcRazorAssembly); 317Assert.Single(manager.ApplicationParts.OfType<AssemblyPart>(), p => p.Assembly == mvcTagHelpersAssembly); 343Assert.Equal(2, manager.ApplicationParts.Count); 344Assert.Single(manager.ApplicationParts.OfType<AssemblyPart>(), p => p.Assembly == mvcRazorAssembly); 345Assert.Single(manager.ApplicationParts.OfType<AssemblyPart>(), p => p.Assembly == mvcTagHelpersAssembly);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (6)
DependencyInjection\MvcViewFeaturesMvcBuilderExtensionsTest.cs (1)
130manager.ApplicationParts.Add(new TestApplicationPart(
ViewComponents\DefaultViewComponentDescriptorProviderTest.cs (1)
171manager.ApplicationParts.Add(new TestApplicationPart(types));
ViewComponents\DefaultViewComponentHelperTest.cs (1)
192manager.ApplicationParts.Add(new TestApplicationPart(types));
ViewComponents\DefaultViewComponentSelectorTest.cs (1)
253manager.ApplicationParts.Add(new TestApplicationPart(types));
ViewComponents\ViewComponentFeatureProviderTest.cs (2)
18manager.ApplicationParts.Add(new TestPart(typeof(ConventionsViewComponent))); 35manager.ApplicationParts.Add(new TestPart(typeof(AttributeViewComponent)));