46 lines
1.5 KiB
C#
46 lines
1.5 KiB
C#
// 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<object, object>();
|
|
RouteValueDefaults = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase);
|
|
}
|
|
|
|
public virtual string Name { get; set; }
|
|
|
|
public List<RouteDataActionConstraint> RouteConstraints { get; set; }
|
|
|
|
public AttributeRouteInfo AttributeRouteInfo { get; set; }
|
|
|
|
public Dictionary<string, object> RouteValueDefaults { get; private set; }
|
|
|
|
/// <summary>
|
|
/// The set of constraints for this action. Must all be satisfied for the action to be selected.
|
|
/// </summary>
|
|
public List<IActionConstraintMetadata> ActionConstraints { get; set; }
|
|
|
|
public List<ParameterDescriptor> Parameters { get; set; }
|
|
|
|
public List<FilterDescriptor> FilterDescriptors { get; set; }
|
|
|
|
/// <summary>
|
|
/// A friendly name for this action.
|
|
/// </summary>
|
|
public virtual string DisplayName { get; set; }
|
|
|
|
/// <summary>
|
|
/// Stores arbitrary metadata properties associated with the <see cref="ActionDescriptor"/>.
|
|
/// </summary>
|
|
public IDictionary<object, object> Properties { get; private set; }
|
|
}
|
|
}
|