Share via


IActionConstraintFactory Interface

Definition

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.

Applies to