10 types derived from ApplicationPart
Microsoft.AspNetCore.Mvc.Core (1)
ApplicationParts\AssemblyPart.cs (1)
11
public class AssemblyPart :
ApplicationPart
, IApplicationPartTypeProvider
Microsoft.AspNetCore.Mvc.Core.Test (3)
ApplicationParts\ApplicationPartManagerTest.cs (2)
76
private class ControllersPart :
ApplicationPart
88
private class ViewComponentsPart :
ApplicationPart
TestApplicationPart.cs (1)
10
public class TestApplicationPart :
ApplicationPart
, IApplicationPartTypeProvider
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
AntiforgeryMiddlewareTest.cs (1)
284
internal class SelectedControllersApplicationParts(Type[] types) :
ApplicationPart
, IApplicationPartTypeProvider
Microsoft.AspNetCore.Mvc.Razor (1)
ApplicationParts\CompiledRazorAssemblyPart.cs (1)
12
public class CompiledRazorAssemblyPart :
ApplicationPart
, IRazorCompiledItemProvider
Microsoft.AspNetCore.Mvc.Razor.Test (2)
ApplicationParts\RazorCompiledItemFeatureProviderTest.cs (1)
153
private class TestRazorCompiledItemProvider :
ApplicationPart
, IRazorCompiledItemProvider
TestApplicationPart.cs (1)
10
public class TestApplicationPart :
ApplicationPart
, IApplicationPartTypeProvider
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
TestApplicationPart.cs (1)
10
public class TestApplicationPart :
ApplicationPart
, IApplicationPartTypeProvider
ViewComponents\ViewComponentFeatureProviderTest.cs (1)
47
private class TestPart :
ApplicationPart
, IApplicationPartTypeProvider
91 references to ApplicationPart
Microsoft.AspNetCore.Identity.FunctionalTests (4)
Infrastructure\ServerFactory.cs (4)
126
IEnumerable<
ApplicationPart
> partsToRemove)
130
var
part = manager.ApplicationParts[i];
142
IEnumerable<
ApplicationPart
> partsToAdd)
144
foreach (
var
part in partsToAdd)
Microsoft.AspNetCore.Identity.UI (2)
IdentityBuilderUIExtensions.cs (2)
52
foreach (
var
part in parts)
111
public 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"/>.
24
public 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.
29
public IList<
ApplicationPart
> ApplicationParts { get; } = new List<
ApplicationPart
>();
68
foreach (
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>
26
public static IEnumerable<
ApplicationPart
> GetDefaultApplicationParts(Assembly assembly)
34
public 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
23
void 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)
18
public override IEnumerable<
ApplicationPart
> GetApplicationParts(Assembly assembly)
20
return Enumerable.Empty<
ApplicationPart
>();
Controllers\ControllerFeatureProvider.cs (2)
11
/// Discovers controllers from a list of <see cref="
ApplicationPart
"/> instances.
19
IEnumerable<
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>
87
foreach (
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>
169
foreach (
var
applicationPart in partFactory.GetApplicationParts(assembly))
Microsoft.AspNetCore.Mvc.Core.Test (19)
ApplicationParts\ApplicationPartManagerTest.cs (2)
119
public void PopulateFeature(IEnumerable<
ApplicationPart
> parts, ViewComponentsFeature feature)
137
public void PopulateFeature(IEnumerable<
ApplicationPart
> parts, ControllersFeature feature)
Controllers\ControllerFeatureProviderTest.cs (4)
297
var otherPart = new Mock<
ApplicationPart
>();
304
Mock.Of<
ApplicationPart
>(),
330
var otherPart = new Mock<
ApplicationPart
>();
337
Mock.Of<
ApplicationPart
>(),
DependencyInjection\MvcBuilderExtensionsTest.cs (6)
31
var
part = Assert.Single(builder.PartManager.ApplicationParts);
54
var
part = Assert.Single(builder.PartManager.ApplicationParts);
76
Assert.Equal(new
ApplicationPart
[] { part }, builder.PartManager.ApplicationParts.ToArray());
179
public static readonly
ApplicationPart
TestPart = Mock.Of<
ApplicationPart
>();
181
public override IEnumerable<
ApplicationPart
> GetApplicationParts(Assembly assembly)
DependencyInjection\MvcCoreBuilderExtensionsTest.cs (6)
28
var
part = Assert.Single(builder.PartManager.ApplicationParts);
51
var
part = Assert.Single(builder.PartManager.ApplicationParts);
73
Assert.Equal(new
ApplicationPart
[] { part }, builder.PartManager.ApplicationParts.ToArray());
105
public static readonly
ApplicationPart
TestPart = Mock.Of<
ApplicationPart
>();
107
public override IEnumerable<
ApplicationPart
> GetApplicationParts(Assembly assembly)
TestFeatureProvider.cs (1)
24
public void PopulateFeature(IEnumerable<
ApplicationPart
> parts, ControllerFeature feature)
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>
21
public static IEnumerable<
ApplicationPart
> GetDefaultApplicationParts(Assembly assembly)
29
public 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.
20
public 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)
16
public void PopulateFeature(IEnumerable<
ApplicationPart
> parts, ViewsFeature feature)
TagHelpers\TagHelperFeatureProvider.cs (3)
16
public void PopulateFeature(IEnumerable<
ApplicationPart
> parts, TagHelperFeature feature)
18
foreach (
var
part in parts)
39
protected virtual bool IncludePart(
ApplicationPart
part) => true;
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
RazorReferenceManager.cs (1)
60
foreach (
var
part in _partManager.ApplicationParts)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
RazorReferenceManagerTest.cs (1)
41
var part = new Mock<
ApplicationPart
>();
Microsoft.AspNetCore.Mvc.Razor.Test (7)
ApplicationParts\RazorCompiledItemFeatureProviderTest.cs (5)
20
var part2 = new Mock<
ApplicationPart
>();
48
var part2 = new Mock<
ApplicationPart
>();
69
var part1 = new Mock<
ApplicationPart
>();
73
var part2 = new Mock<
ApplicationPart
>();
99
var part2 = new Mock<
ApplicationPart
>();
Compilation\DefaultViewCompilerTest.cs (1)
151
public void PopulateFeature(IEnumerable<
ApplicationPart
> parts, ViewsFeature feature)
DependencyInjection\MvcRazorMvcCoreBuilderExtensionsTest.cs (1)
117
public void PopulateFeature(IEnumerable<
ApplicationPart
> parts, TagHelperFeature feature)
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
241
public 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.
15
public void PopulateFeature(IEnumerable<
ApplicationPart
> parts, ViewComponentFeature feature)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (5)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
314
public void PopulateFeature(IEnumerable<
ApplicationPart
> parts, ControllerFeature feature)
DependencyInjection\MvcViewFeaturesMvcBuilderExtensionsTest.cs (1)
179
public void PopulateFeature(IEnumerable<
ApplicationPart
> parts, ViewComponentFeature feature)
ViewComponents\DefaultViewComponentDescriptorProviderTest.cs (1)
178
public void PopulateFeature(IEnumerable<
ApplicationPart
> parts, ViewComponentFeature feature)
ViewComponents\DefaultViewComponentHelperTest.cs (1)
199
public void PopulateFeature(IEnumerable<
ApplicationPart
> parts, ViewComponentFeature feature)
ViewComponents\DefaultViewComponentSelectorTest.cs (1)
260
public void PopulateFeature(IEnumerable<
ApplicationPart
> parts, ViewComponentFeature feature)