1 interface inheriting from IActionConstraint
Microsoft.AspNetCore.Mvc.Core (1)
ActionConstraints\IConsumesActionConstraint.cs (1)
10internal interface IConsumesActionConstraint : IActionConstraint
2 implementations of IActionConstraint
Microsoft.AspNetCore.Mvc.Core (2)
ActionConstraints\ActionMethodSelectorAttribute.cs (1)
14public abstract class ActionMethodSelectorAttribute : Attribute, IActionConstraint
ActionConstraints\HttpMethodActionConstraint.cs (1)
15public class HttpMethodActionConstraint : IActionConstraint
41 references to IActionConstraint
Microsoft.AspNetCore.Mvc.Abstractions (15)
ActionConstraints\ActionConstraintContext.cs (1)
9/// Context for <see cref="IActionConstraint"/> execution.
ActionConstraints\ActionConstraintItem.cs (3)
8/// <see cref="IActionConstraint"/>. 24/// The <see cref="IActionConstraint"/> associated with <see cref="Metadata"/>. 26public IActionConstraint? Constraint { get; set; }
ActionConstraints\ActionSelectorCandidate.cs (4)
18/// The list of <see cref="IActionConstraint"/> instances associated with <paramref name="action"/>. 20public ActionSelectorCandidate(ActionDescriptor action, IReadOnlyList<IActionConstraint>? constraints) 34/// The list of <see cref="IActionConstraint"/> instances associated with <see name="Action"/>. 36public IReadOnlyList<IActionConstraint>? Constraints { get; }
ActionConstraints\IActionConstraint.cs (1)
44/// <see cref="IActionConstraint"/>.
ActionConstraints\IActionConstraintFactory.cs (4)
7/// A factory for <see cref="IActionConstraint"/>. 25/// Creates a new <see cref="IActionConstraint"/>. 28/// <returns>An <see cref="IActionConstraint"/>.</returns> 29IActionConstraint CreateInstance(IServiceProvider services);
ActionConstraints\IActionConstraintMetadata.cs (1)
7/// A marker interface that identifies a type as metadata for an <see cref="IActionConstraint"/>.
ActionConstraints\IActionConstraintProvider.cs (1)
7/// Provider for <see cref="IActionConstraint"/>.
Microsoft.AspNetCore.Mvc.Core (26)
_generated\0\LoggerMessage.g.cs (3)
543private static readonly global::System.Action<global::Microsoft.Extensions.Logging.ILogger, string?, string, global::Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraint, global::System.Exception?> __ConstraintMismatchCallback = 544global::Microsoft.Extensions.Logging.LoggerMessage.Define<string?, string, global::Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraint>(global::Microsoft.Extensions.Logging.LogLevel.Debug, new global::Microsoft.Extensions.Logging.EventId(2, "ConstraintMismatch"), "Action '{ActionName}' with id '{ActionId}' did not match the constraint '{ActionConstraint}'", new global::Microsoft.Extensions.Logging.LogDefineOptions() { SkipEnabledCheck = true }); 551public static partial void ConstraintMismatch(global::Microsoft.Extensions.Logging.ILogger logger, string? actionName, string actionId, global::Microsoft.AspNetCore.Mvc.ActionConstraints.IActionConstraint actionConstraint)
ActionConstraints\ActionConstraintCache.cs (7)
45public IReadOnlyList<IActionConstraint>? GetActionConstraints(HttpContext httpContext, ActionDescriptor action) 93private IReadOnlyList<IActionConstraint>? GetActionConstraintsFromEntry(CacheEntry entry, HttpContext httpContext, ActionDescriptor action) 136private static IReadOnlyList<IActionConstraint>? ExtractActionConstraints(List<ActionConstraintItem> items) 152var actionConstraints = new IActionConstraint[count]; 156var actionConstraint = items[i].Constraint; 183public CacheEntry(IReadOnlyList<IActionConstraint> actionConstraints) 195public IReadOnlyList<IActionConstraint>? ActionConstraints { get; }
ActionConstraints\ActionMethodSelectorAttribute.cs (1)
11/// for a given request. See <see cref="IActionConstraint"/>.
ActionConstraints\DefaultActionConstraintProvider.cs (3)
10/// This provider is able to provide an <see cref="IActionConstraint"/> instance when the 11/// <see cref="IActionConstraintMetadata"/> implements <see cref="IActionConstraint"/> or 43if (item.Metadata is IActionConstraint constraint)
ActionConstraints\HttpMethodActionConstraint.cs (2)
10/// The implementation of <see cref="IActionConstraint" /> used to enforce 18/// The <see cref="IActionConstraint.Order" /> value used by <see cref="HttpMethodActionConstraint" />.
ActionConstraints\IConsumesActionConstraint.cs (1)
7/// An <see cref="IActionConstraint"/> constraint that identifies a type which can be used to select an action
ConsumesAttribute.cs (1)
83int IActionConstraint.Order => ConsumesActionConstraintOrder;
Infrastructure\ActionSelector.cs (4)
33/// providers a set of <see cref="IActionConstraint"/> instances.</param> 161var constraint = candidate.Constraints[j]; 200var constraint = candidate.Constraints[j]; 256public static partial void ConstraintMismatch(ILogger logger, string? actionName, string actionId, IActionConstraint actionConstraint);
Routing\ActionConstraintMatcherPolicy.cs (4)
139IReadOnlyList<IActionConstraint>? constraints = Array.Empty<IActionConstraint>(); 173var constraint = constraints[j]; 212var constraint = constraints[j];