This repository has been archived by the owner on Dec 14, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Attribute Routing Link Generation
- Loading branch information
Showing
19 changed files
with
1,296 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
src/Microsoft.AspNet.Mvc.Core/Routing/AttributeRouteGenerationEntry.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
// 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.Routing; | ||
using Microsoft.AspNet.Routing.Template; | ||
|
||
namespace Microsoft.AspNet.Mvc.Routing | ||
{ | ||
/// <summary> | ||
/// Used to build an <see cref="AttributeRoute"/>. Represents an individual URL-generating route that will be | ||
/// aggregated into the <see cref="AttributeRoute"/>. | ||
/// </summary> | ||
public class AttributeRouteGenerationEntry | ||
{ | ||
/// <summary> | ||
/// The <see cref="TemplateBinder"/>. | ||
/// </summary> | ||
public TemplateBinder Binder { get; set; } | ||
|
||
/// <summary> | ||
/// The route constraints. | ||
/// </summary> | ||
public IDictionary<string, IRouteConstraint> Constraints { get; set; } | ||
|
||
/// <summary> | ||
/// The route defaults. | ||
/// </summary> | ||
public IDictionary<string, object> Defaults { get; set; } | ||
|
||
/// <summary> | ||
/// The precedence of the template. | ||
/// </summary> | ||
public decimal Precedence { get; set; } | ||
|
||
/// <summary> | ||
/// The route group. | ||
/// </summary> | ||
public string RouteGroup { get; set; } | ||
|
||
/// <summary> | ||
/// The set of values that must be present for link genration. | ||
/// </summary> | ||
public IDictionary<string, object> RequiredLinkValues { get; set; } | ||
|
||
/// <summary> | ||
/// The <see cref="Template"/>. | ||
/// </summary> | ||
public Template Template { get; set; } | ||
} | ||
} |
Oops, something went wrong.