IActionConstraintFactory Interface

Definition

A factory for IActionConstraint.

C#
public interface IActionConstraintFactory : Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraintMetadata
Implements

Remarks

IActionConstraintFactory will be invoked during action selection to create constraint instances for an action.

Place an attribute implementing this interface on a controller or action to insert an action constraint created by a factory.

Properties

IsReusable

Gets a value that indicates if the result of CreateInstance(IServiceProvider) can be reused across requests.

Methods

Applies to

Product Versions
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