IActionDescriptorProvider.Order Property

Definition

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

C#
public int Order { get; }

Property Value

Remarks

Providers are executed in an ordering determined by an ascending sort of the Order property. A provider with a lower numeric value of Order will have its OnProvidersExecuting(ActionDescriptorProviderContext) called before that of a provider with a higher numeric value of Order. The OnProvidersExecuted(ActionDescriptorProviderContext) method is called in the reverse ordering after all calls to OnProvidersExecuting(ActionDescriptorProviderContext). A provider with a lower numeric value of Order will have its OnProvidersExecuted(ActionDescriptorProviderContext) method called after that of a provider with a higher numeric value of Order.

If two providers have the same numeric value of Order, then their relative execution order is undefined.

Applies to

Produkt Versiounen
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0