10 types derived from ApplicationPart
ControllersFromServicesWebSite (1)
Startup.cs (1)
41private class TypesPart : ApplicationPart, IApplicationPartTypeProvider
Microsoft.AspNetCore.Mvc.Core (1)
ApplicationParts\AssemblyPart.cs (1)
11public class AssemblyPart : ApplicationPart, IApplicationPartTypeProvider
Microsoft.AspNetCore.Mvc.Core.Test (3)
ApplicationParts\ApplicationPartManagerTest.cs (2)
76private class ControllersPart : ApplicationPart 88private class ViewComponentsPart : ApplicationPart
TestApplicationPart.cs (1)
10public class TestApplicationPart : ApplicationPart, IApplicationPartTypeProvider
Microsoft.AspNetCore.Mvc.Razor (1)
ApplicationParts\CompiledRazorAssemblyPart.cs (1)
12public class CompiledRazorAssemblyPart : ApplicationPart, IRazorCompiledItemProvider
Microsoft.AspNetCore.Mvc.Razor.Test (2)
ApplicationParts\RazorCompiledItemFeatureProviderTest.cs (1)
153private class TestRazorCompiledItemProvider : ApplicationPart, IRazorCompiledItemProvider
TestApplicationPart.cs (1)
10public class TestApplicationPart : ApplicationPart, IApplicationPartTypeProvider
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
TestApplicationPart.cs (1)
10public class TestApplicationPart : ApplicationPart, IApplicationPartTypeProvider
ViewComponents\ViewComponentFeatureProviderTest.cs (1)
47private class TestPart : ApplicationPart, IApplicationPartTypeProvider
90 references to ApplicationPart
ControllersFromServicesWebSite (1)
Startup.cs (1)
27foreach (var part in CompiledRazorAssemblyApplicationPartFactory.GetDefaultApplicationParts(Assembly.GetExecutingAssembly()))
Microsoft.AspNetCore.Identity.FunctionalTests (4)
Infrastructure\ServerFactory.cs (4)
125IEnumerable<ApplicationPart> partsToRemove) 129var part = manager.ApplicationParts[i]; 141IEnumerable<ApplicationPart> partsToAdd) 143foreach (var part in partsToAdd)
Microsoft.AspNetCore.Identity.UI (2)
IdentityBuilderUIExtensions.cs (2)
52foreach (var part in parts) 111public void PopulateFeature(IEnumerable<ApplicationPart> parts, ViewsFeature feature)
Microsoft.AspNetCore.Mvc.Core (37)
ApplicationParts\ApplicationPart.cs (1)
12/// Gets the <see cref="ApplicationPart"/> name.
ApplicationParts\ApplicationPartAttribute.cs (2)
7/// Specifies an assembly to be added as an <see cref="ApplicationPart" />. 11/// Each of these assemblies is treated as an <see cref="ApplicationPart" />.
ApplicationParts\ApplicationPartFactory.cs (3)
10/// Specifies a contract for synthesizing one or more <see cref="ApplicationPart"/> instances 21/// Gets one or more <see cref="ApplicationPart"/> instances for the specified <paramref name="assembly"/>. 24public abstract IEnumerable<ApplicationPart> GetApplicationParts(Assembly assembly);
ApplicationParts\ApplicationPartManager.cs (6)
21/// Gets the list of <see cref="ApplicationPart"/> instances. 23/// Instances in this collection are stored in precedence order. An <see cref="ApplicationPart"/> that appears 26/// multiple <see cref="ApplicationPart"/> instances resolve equivalent feature values. 29public IList<ApplicationPart> ApplicationParts { get; } = new List<ApplicationPart>(); 68foreach (var applicationPart in partFactory.GetApplicationParts(assembly))
ApplicationParts\AssemblyPart.cs (3)
9/// An <see cref="ApplicationPart"/> backed by an <see cref="System.Reflection.Assembly"/>. 23/// Gets the <see cref="Assembly"/> of the <see cref="ApplicationPart"/>. 28/// Gets the name of the <see cref="ApplicationPart"/>.
ApplicationParts\DefaultApplicationPartFactory.cs (4)
19/// Gets the sequence of <see cref="ApplicationPart"/> instances that are created by this instance of <see cref="DefaultApplicationPartFactory"/>. 25/// <returns>The sequence of <see cref="ApplicationPart"/> instances.</returns> 26public static IEnumerable<ApplicationPart> GetDefaultApplicationParts(Assembly assembly) 34public override IEnumerable<ApplicationPart> GetApplicationParts(Assembly assembly)
ApplicationParts\IApplicationFeatureProviderOfT.cs (3)
15/// <param name="parts">The list of <see cref="ApplicationPart"/> instances in the application. 19/// <see cref="ApplicationPart"/> instances in <paramref name="parts"/> appear in the same ordered sequence they 23void PopulateFeature(IEnumerable<ApplicationPart> parts, TFeature feature);
ApplicationParts\IApplicationPartTypeProvider.cs (2)
9/// Exposes a set of types from an <see cref="ApplicationPart"/>. 14/// Gets the list of available types in the <see cref="ApplicationPart"/>.
ApplicationParts\ICompilationReferencesProvider.cs (1)
7/// Exposes one or more reference paths from an <see cref="ApplicationPart"/>.
ApplicationParts\NullApplicationPartFactory.cs (2)
18public override IEnumerable<ApplicationPart> GetApplicationParts(Assembly assembly) 20return Enumerable.Empty<ApplicationPart>();
Controllers\ControllerFeatureProvider.cs (2)
11/// Discovers controllers from a list of <see cref="ApplicationPart"/> instances. 19IEnumerable<ApplicationPart> parts,
DependencyInjection\IMvcBuilder.cs (1)
19/// Gets the <see cref="ApplicationPartManager"/> where <see cref="ApplicationPart"/>s
DependencyInjection\IMvcCoreBuilder.cs (1)
19/// Gets the <see cref="ApplicationPartManager"/> where <see cref="ApplicationPart"/>s
DependencyInjection\MvcCoreMvcBuilderExtensions.cs (3)
73/// Adds an <see cref="ApplicationPart"/> to the list of <see cref="ApplicationPartManager.ApplicationParts"/> on the 77/// <param name="assembly">The <see cref="Assembly"/> of the <see cref="ApplicationPart"/>.</param> 87foreach (var applicationPart in partFactory.GetApplicationParts(assembly))
DependencyInjection\MvcCoreMvcCoreBuilderExtensions.cs (3)
155/// Adds an <see cref="ApplicationPart"/> to the list of <see cref="ApplicationPartManager.ApplicationParts"/> on the 159/// <param name="assembly">The <see cref="Assembly"/> of the <see cref="ApplicationPart"/>.</param> 169foreach (var applicationPart in partFactory.GetApplicationParts(assembly))
Microsoft.AspNetCore.Mvc.Core.Test (15)
ApplicationParts\ApplicationPartManagerTest.cs (2)
119public void PopulateFeature(IEnumerable<ApplicationPart> parts, ViewComponentsFeature feature) 137public void PopulateFeature(IEnumerable<ApplicationPart> parts, ControllersFeature feature)
Controllers\ControllerFeatureProviderTest.cs (4)
297var otherPart = new Mock<ApplicationPart>(); 304Mock.Of<ApplicationPart>(), 330var otherPart = new Mock<ApplicationPart>(); 337Mock.Of<ApplicationPart>(),
DependencyInjection\MvcBuilderExtensionsTest.cs (4)
76Assert.Equal(new ApplicationPart[] { part }, builder.PartManager.ApplicationParts.ToArray()); 179public static readonly ApplicationPart TestPart = Mock.Of<ApplicationPart>(); 181public override IEnumerable<ApplicationPart> GetApplicationParts(Assembly assembly)
DependencyInjection\MvcCoreBuilderExtensionsTest.cs (4)
73Assert.Equal(new ApplicationPart[] { part }, builder.PartManager.ApplicationParts.ToArray()); 105public static readonly ApplicationPart TestPart = Mock.Of<ApplicationPart>(); 107public override IEnumerable<ApplicationPart> GetApplicationParts(Assembly assembly)
TestFeatureProvider.cs (1)
24public void PopulateFeature(IEnumerable<ApplicationPart> parts, ControllerFeature feature)
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
AntiforgeryMiddlewareTest.cs (1)
284internal class SelectedControllersApplicationParts(Type[] types) : ApplicationPart, IApplicationPartTypeProvider
Microsoft.AspNetCore.Mvc.Razor (12)
ApplicationParts\CompiledRazorAssemblyApplicationPartFactory.cs (4)
14/// Gets the sequence of <see cref="ApplicationPart"/> instances that are created by this instance of <see cref="DefaultApplicationPartFactory"/>. 20/// <returns>The sequence of <see cref="ApplicationPart"/> instances.</returns> 21public static IEnumerable<ApplicationPart> GetDefaultApplicationParts(Assembly assembly) 29public override IEnumerable<ApplicationPart> GetApplicationParts(Assembly assembly) => GetDefaultApplicationParts(assembly);
ApplicationParts\CompiledRazorAssemblyPart.cs (1)
10/// An <see cref="ApplicationPart"/> for compiled Razor assemblies.
ApplicationParts\ConsolidatedAssemblyApplicationPartFactory.cs (2)
10/// Configures an <see cref="ApplicationPart" /> that contains controllers, as well as Razor views and Pages. 20public override IEnumerable<ApplicationPart> GetApplicationParts(Assembly assembly)
ApplicationParts\IRazorCompiledItemProvider.cs (1)
9/// Exposes one or more <see cref="RazorCompiledItem"/> instances from an <see cref="ApplicationPart"/>.
ApplicationParts\RazorCompiledItemFeatureProvider.cs (1)
16public void PopulateFeature(IEnumerable<ApplicationPart> parts, ViewsFeature feature)
TagHelpers\TagHelperFeatureProvider.cs (3)
16public void PopulateFeature(IEnumerable<ApplicationPart> parts, TagHelperFeature feature) 18foreach (var part in parts) 39protected virtual bool IncludePart(ApplicationPart part) => true;
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
RazorReferenceManager.cs (1)
56foreach (var part in _partManager.ApplicationParts)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
RazorReferenceManagerTest.cs (1)
39var part = new Mock<ApplicationPart>();
Microsoft.AspNetCore.Mvc.Razor.Test (7)
ApplicationParts\RazorCompiledItemFeatureProviderTest.cs (5)
20var part2 = new Mock<ApplicationPart>(); 48var part2 = new Mock<ApplicationPart>(); 69var part1 = new Mock<ApplicationPart>(); 73var part2 = new Mock<ApplicationPart>(); 99var part2 = new Mock<ApplicationPart>();
Compilation\DefaultViewCompilerTest.cs (1)
151public void PopulateFeature(IEnumerable<ApplicationPart> parts, ViewsFeature feature)
DependencyInjection\MvcRazorMvcCoreBuilderExtensionsTest.cs (1)
117public void PopulateFeature(IEnumerable<ApplicationPart> parts, TagHelperFeature feature)
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
241public void PopulateFeature(IEnumerable<ApplicationPart> parts, ViewsFeature feature)
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
ViewComponents\ViewComponentFeatureProvider.cs (2)
10/// Discovers view components from a list of <see cref="ApplicationPart"/> instances. 15public void PopulateFeature(IEnumerable<ApplicationPart> parts, ViewComponentFeature feature)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (5)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
314public void PopulateFeature(IEnumerable<ApplicationPart> parts, ControllerFeature feature)
DependencyInjection\MvcViewFeaturesMvcBuilderExtensionsTest.cs (1)
179public void PopulateFeature(IEnumerable<ApplicationPart> parts, ViewComponentFeature feature)
ViewComponents\DefaultViewComponentDescriptorProviderTest.cs (1)
178public void PopulateFeature(IEnumerable<ApplicationPart> parts, ViewComponentFeature feature)
ViewComponents\DefaultViewComponentHelperTest.cs (1)
199public void PopulateFeature(IEnumerable<ApplicationPart> parts, ViewComponentFeature feature)
ViewComponents\DefaultViewComponentSelectorTest.cs (1)
260public void PopulateFeature(IEnumerable<ApplicationPart> parts, ViewComponentFeature feature)
Mvc.RoutingWebSite (1)
Infrastructure\ManualControllerFeatureProvider.cs (1)
18public void PopulateFeature(IEnumerable<ApplicationPart> parts, ControllerFeature feature)