// 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;
using System.Collections.Generic;
using Microsoft.AspNet.Mvc.Abstractions;
namespace Microsoft.AspNet.Mvc.ActionConstraints
{
///
/// A candidate action for action selection.
///
public class ActionSelectorCandidate
{
///
/// Creates a new .
///
/// The representing a candidate for selection.
///
/// The list of instances associated with .
///
public ActionSelectorCandidate(ActionDescriptor action, IReadOnlyList constraints)
{
if (action == null)
{
throw new ArgumentNullException(nameof(action));
}
Action = action;
Constraints = constraints;
}
///
/// The representing a candiate for selection.
///
public ActionDescriptor Action { get; private set; }
///
/// The list of instances associated with .
///
public IReadOnlyList Constraints { get; private set; }
}
}