Delen via


Microsoft.AspNetCore.Mvc.ApplicationParts Namespace

Provides types that allow manipulating the resources of an MVC app. Application Parts allow ASP.NET Core to discover controllers, view components, tag helpers, Razor Pages, razor compilation sources, and more.

Classes

ApplicationPart

A part of an MVC application.

ApplicationPartAttribute

Specifies an assembly to be added as an ApplicationPart.

In the ordinary case, MVC will generate ApplicationPartAttribute instances on the entry assembly for each dependency that references MVC. Each of these assemblies is treated as an ApplicationPart.

ApplicationPartFactory

Specifies a contract for synthesizing one or more ApplicationPart instances from an Assembly.

By default, Mvc registers each application assembly that it discovers as an AssemblyPart. Assemblies can optionally specify an ApplicationPartFactory to configure parts for the assembly by using ProvideApplicationPartFactoryAttribute.

ApplicationPartManager

Manages the parts and features of an MVC application.

AssemblyPart

An ApplicationPart backed by an Assembly.

AssemblyPartExtensions

Static class that adds methods to AssemblyPart.

CompiledRazorAssemblyApplicationPartFactory

Configures an assembly as a CompiledRazorAssemblyPart.

CompiledRazorAssemblyPart

An ApplicationPart for compiled Razor assemblies.

ConsolidatedAssemblyApplicationPartFactory

Configures an ApplicationPart that contains controllers, as well as Razor views and Pages.

Combines the results of GetApplicationParts(Assembly) and GetApplicationParts(Assembly). This part factory may be used if Razor views or Razor Pages are compiled in to with other types including controllers.

DefaultApplicationPartFactory

Default ApplicationPartFactory.

NullApplicationPartFactory

An ApplicationPartFactory that produces no parts.

This factory may be used to to preempt Mvc's default part discovery allowing for custom configuration at a later stage.

ProvideApplicationPartFactoryAttribute

Provides a ApplicationPartFactory type.

RelatedAssemblyAttribute

Specifies a assembly to load as part of MVC's assembly discovery mechanism.

ViewInfo

Provides information for precompiled views.

ViewInfoContainer

A container for ViewInfo instances.

Interfaces

IApplicationFeatureProvider

Marker interface for IApplicationFeatureProvider implementations.

IApplicationFeatureProvider<TFeature>

A provider for a given TFeature feature.

IApplicationPartTypeProvider

Exposes a set of types from an ApplicationPart.

ICompilationReferencesProvider

Exposes one or more reference paths from an ApplicationPart.

IRazorCompiledItemProvider

Exposes one or more RazorCompiledItem instances from an ApplicationPart.

Remarks

For more information, Application parts.