// 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 Microsoft.AspNetCore.Routing;
namespace Microsoft.AspNetCore.Mvc.Routing
{
///
/// Represents the routing information for an action that is attribute routed.
///
public class AttributeRouteInfo
{
///
/// The route template. May be null if the action has no attribute routes.
///
public string Template { get; set; }
///
/// Gets the order of the route associated with a given action. This property determines
/// the order in which routes get executed. Routes with a lower order value are tried first. In case a route
/// doesn't specify a value, it gets a default order of 0.
///
public int Order { get; set; }
///
/// Gets the name of the route associated with a given action. This property can be used
/// to generate a link by referring to the route by name instead of attempting to match a
/// route by provided route data.
///
public string Name { get; set; }
///
/// Gets or sets a value that determines if the route entry associated with this model participates in link generation.
///
public bool SuppressLinkGeneration { get; set; }
///
/// Gets or sets a value that determines if the route entry associated with this model participates in path matching (inbound routing).
///
public bool SuppressPathMatching { get; set; }
}
}