// 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); Id = Guid.NewGuid().ToString(); } /// /// Gets an id which uniquely identifies the action. /// public string Id { get; } public virtual string Name { get; set; } public IList RouteConstraints { get; set; } public AttributeRouteInfo AttributeRouteInfo { get; set; } public IDictionary RouteValueDefaults { get; } /// /// The set of constraints for this action. Must all be satisfied for the action to be selected. /// public IList ActionConstraints { get; set; } public IList Parameters { get; set; } /// /// The set of properties which are model bound. /// public IList BoundProperties { get; set; } public IList 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; } } }