Share via


IActionDescriptorProvider Interface

Definition

Defines a contract for specifying ActionDescriptor instances.

public interface class IActionDescriptorProvider
public interface IActionDescriptorProvider
type IActionDescriptorProvider = interface
Public Interface IActionDescriptorProvider
Derived

Remarks

On application initialization, MVC invokes all registered instances of IActionDescriptorProvider to perform ActionDescriptor discovery. IActionDescriptorProvider instances are invoked in the ascending sort order of Order.

Each provider has its OnProvidersExecuting(ActionDescriptorProviderContext) method called in sequence and given the same instance of ActionInvokerProviderContext. Then each provider has its OnProvidersExecuted(ActionDescriptorProviderContext) method called in the reverse order. Each instance has an opportunity to add or modify Results.

As providers are called in a predefined sequence, each provider has a chance to observe and decorate the result of the providers that have already run.

Properties

Order

Gets the order value for determining the order of execution of providers. Providers execute in ascending numeric value of the Order property.

Methods

OnProvidersExecuted(ActionDescriptorProviderContext)

Called to execute the provider, after the OnProvidersExecuting(ActionDescriptorProviderContext) methods of all providers, have been called. Order for details on the order of execution of OnProvidersExecuted(ActionDescriptorProviderContext).

OnProvidersExecuting(ActionDescriptorProviderContext)

Called to execute the provider. Order for details on the order of execution of OnProvidersExecuting(ActionDescriptorProviderContext).

Applies to