Microsoft.AspNetCore.Mvc.Infrastructure Namespace

Provides types required for action and result execution.

Classes

ActionContextAccessor

Type that provides access to an ActionContext.

ActionDescriptorCollection

A cached collection of ActionDescriptor.

ActionDescriptorCollectionProvider

A base class for IActionDescriptorCollectionProvider which also provides an IChangeToken for reactive notifications of ActionDescriptor changes.

ActionResultObjectValueAttribute

Attribute annotated on ActionResult constructor, helper method parameters, and properties to indicate that the parameter or property is used to set the "value" for ActionResult.

Analyzers match this parameter by type name. This allows users to annotate custom results \ custom helpers with a user-defined attribute without having to expose this type.

This attribute is intentionally marked Inherited=false since the analyzer does not walk the inheritance graph.

ActionResultStatusCodeAttribute

Attribute annotated on ActionResult constructor and helper method parameters to indicate that the parameter is used to set the "statusCode" for the ActionResult.

Analyzers match this parameter by type name. This allows users to annotate custom results \ custom helpers with a user-defined attribute without having to expose this type.

This attribute is intentionally marked Inherited=false since the analyzer does not walk the inheritance graph.

AmbiguousActionException

An exception which indicates multiple matches in action selection.

CompatibilitySwitch<TValue>

Infrastructure supporting the implementation of CompatibilityVersion. This is an implementation of ICompatibilitySwitch suitable for use with the IOptions<TOptions> pattern. This is framework infrastructure and should not be used by application code.

ConfigureCompatibilityOptions<TOptions>

A base class for infrastructure that implements ASP.NET Core MVC's support for CompatibilityVersion. This is framework infrastructure and should not be used by application code.

ContentResultExecutor

A IActionResultExecutor<TResult> that is responsible for ContentResult

DefaultOutputFormatterSelector

The default implementation of OutputFormatterSelector.

DefaultProblemDetailsFactory

The DefaultProblemDetailsFactory is a concrete implementation of the ProblemDetailsFactory abstract class. It provides methods to create instances of ProblemDetails and ValidationProblemDetails with default settings. This class uses the provided ApiBehaviorOptions for client error mapping and an optional custom configuration action to further customize the problem details.

DefaultStatusCodeAttribute

Specifies the default status code associated with an ActionResult.

FileContentResultExecutor

A IActionResultExecutor<TResult>

FileResultExecutorBase

Base class for executing a file result.

FileStreamResultExecutor

An IActionResultExecutor<TResult> for a file stream result.

LocalRedirectResultExecutor

A IActionResultExecutor<TResult> that handles LocalRedirectResult.

ModelStateInvalidFilter

A IActionFilter that responds to invalid ModelState. This filter is added to all types and actions annotated with ApiControllerAttribute. See ApiBehaviorOptions for ways to configure this filter.

MvcCompatibilityOptions

An options type for configuring the application CompatibilityVersion.

ObjectResultExecutor

Executes an ObjectResult to write to the response.

OutputFormatterSelector

Selects an IOutputFormatter to write a response to the current request.

PhysicalFileResultExecutor

A IActionResultExecutor<TResult> for PhysicalFileResult.

PhysicalFileResultExecutor.FileMetadata

Represents metadata for a file.

ProblemDetailsFactory

Factory to produce ProblemDetails and ValidationProblemDetails.

RedirectResultExecutor

A IActionResultExecutor<TResult> for RedirectResult.

RedirectToActionResultExecutor

A IActionResultExecutor<TResult> for RedirectToActionResult.

RedirectToPageResultExecutor

A IActionResultExecutor<TResult> for RedirectToPageResult.

RedirectToRouteResultExecutor

A IActionResultExecutor<TResult> for RedirectToRouteResult.

VirtualFileResultExecutor

A IActionResultExecutor<TResult> for VirtualFileResult.

Interfaces

IActionContextAccessor

Defines an interface for exposing an ActionContext.

IActionDescriptorChangeProvider

Provides a way to signal invalidation of the cached collection of ActionDescriptor from an IActionDescriptorCollectionProvider.

IActionDescriptorCollectionProvider

Provides the currently cached collection of ActionDescriptor.

IActionInvokerFactory

Defines an interface for creating an IActionInvoker for the current request.

IActionResultExecutor<TResult>

Defines an interface for a service which can execute a particular kind of IActionResult by manipulating the HttpResponse.

IActionResultTypeMapper

Provides a mapping from the return value of an action to an IActionResult for request processing.

IActionSelector

Defines an interface for selecting an MVC action to invoke for the current request.

IApiBehaviorMetadata

A IFilterMetadata that indicates that a type and all derived types are used to serve HTTP API responses.

Controllers decorated with this attribute (ApiControllerAttribute) are configured with features and behavior targeted at improving the developer experience for building APIs.

IClientErrorActionResult

An IStatusCodeActionResult that can be transformed to a more descriptive client error.

IClientErrorFactory

A factory for producing client errors. This contract is used by controllers annotated with ApiControllerAttribute to transform IClientErrorActionResult.

ICompatibilitySwitch

Defines a compatibility switch. This is framework infrastructure and should not be used by application code.

IConvertToActionResult

Defines the contract to convert a type to an IActionResult during action invocation.

IHttpRequestStreamReaderFactory

Creates TextReader instances for reading from Body.

IHttpResponseStreamWriterFactory

Creates TextWriter instances for writing to Body.

IParameterInfoParameterDescriptor

A ParameterDescriptor for action parameters.

IPropertyInfoParameterDescriptor

A ParameterDescriptor for bound properties.

IStatusCodeActionResult

Represents an IActionResult that when executed will produce an HTTP response with the specified StatusCode.

Remarks

For an introduction to MVC, see Overview of ASP.NET Core MVC.