// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; using Microsoft.AspNet.Http; using Microsoft.Framework.Internal; namespace Microsoft.AspNet.Mvc.ActionConstraints { /// /// Context for an action constraint provider. /// public class ActionConstraintProviderContext { /// /// Creates a new . /// /// The for which constraints are being created. /// The list of objects. public ActionConstraintProviderContext( [NotNull] HttpContext context, [NotNull] ActionDescriptor action, [NotNull] IList items) { HttpContext = context; Action = action; Results = items; } public HttpContext HttpContext { get; } /// /// The for which constraints are being created. /// public ActionDescriptor Action { get; private set; } /// /// The list of objects. /// public IList Results { get; private set; } } }