// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using System;
namespace Microsoft.AspNet.Mvc.ActionConstraints
{
///
/// Represents an with or without a corresponding
/// .
///
public class ActionConstraintItem
{
///
/// Creates a new .
///
/// The instance.
public ActionConstraintItem(IActionConstraintMetadata metadata)
{
if (metadata == null)
{
throw new ArgumentNullException(nameof(metadata));
}
Metadata = metadata;
}
///
/// The associated with .
///
public IActionConstraint Constraint { get; set; }
///
/// The instance.
///
public IActionConstraintMetadata Metadata { get; private set; }
}
}