IActionConstraintFactory Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A factory for IActionConstraint.
public interface class IActionConstraintFactory : Microsoft::AspNetCore::Mvc::ActionConstraints::IActionConstraintMetadata
public interface IActionConstraintFactory : Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraintMetadata
type IActionConstraintFactory = interface
interface IActionConstraintMetadata
Public Interface IActionConstraintFactory
Implements 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
CreateInstance(IServiceProvider) |
Creates a new IActionConstraint. |