// 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; using System.Collections.Generic; using Microsoft.AspNet.Mvc.Routing; namespace Microsoft.AspNet.Mvc { public class ActionDescriptor { public ActionDescriptor() { Properties = new Dictionary(); RouteValueDefaults = new Dictionary(StringComparer.OrdinalIgnoreCase); } public virtual string Name { get; set; } public List RouteConstraints { get; set; } public AttributeRouteInfo AttributeRouteInfo { get; set; } public Dictionary RouteValueDefaults { get; private set; } /// /// The set of constraints for this action. Must all be satisfied for the action to be selected. /// public List ActionConstraints { get; set; } public List Parameters { get; set; } public List FilterDescriptors { get; set; } /// /// A friendly name for this action. /// public virtual string DisplayName { get; set; } /// /// Stores arbitrary metadata properties associated with the . /// public IDictionary Properties { get; private set; } } }