Dela via


IActionInvokerProvider Interface

Definition

Defines an interface for components that can create an IActionInvoker for the current request.

public interface class IActionInvokerProvider
public interface IActionInvokerProvider
type IActionInvokerProvider = interface
Public Interface IActionInvokerProvider

Remarks

IActionInvokerProvider instances form a pipeline that results in the creation of an IActionInvoker. The IActionInvokerProvider instances are ordered by an ascending sort of the Order.

To create an IActionInvoker, each provider has its OnProvidersExecuting(ActionInvokerProviderContext) method called in sequence and given the same instance of ActionInvokerProviderContext. Then each provider has its OnProvidersExecuted(ActionInvokerProviderContext) method called in the reverse order. The result is the value of Result.

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(ActionInvokerProviderContext)

Called to execute the provider, after the OnProvidersExecuting(ActionInvokerProviderContext) methods of all providers, have been called.

OnProvidersExecuting(ActionInvokerProviderContext)

Called to execute the provider.

Applies to