Last active
May 18, 2019 19:08
-
-
Save seangwright/c2fb38e93561d7b5069aad5e989cae4b to your computer and use it in GitHub Desktop.
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
/// <summary> | |
/// Sourced from https://benfoster.io/blog/improving-aspnet-mvc-routing-configuration | |
/// </summary> | |
public interface IRouteRegistry | |
{ | |
/// <summary> | |
/// Provides the global <see cref="RouteCollection"/> to which the Registery's routes | |
/// should be added | |
/// </summary> | |
/// <param name="routes"></param> | |
void RegisterRoutes(RouteCollection routes); | |
/// <summary> | |
/// Sets the priority of the registry which is used to determine | |
/// the order in which all Registrys in the application should be added to the | |
/// global <see cref="RouteCollection"/>. The lowest priority (0) numerically will | |
/// be registered first. | |
/// </summary> | |
int Priority { get; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment