@@ -20,16 +20,14 @@ public class ArticulateRouter
20
20
{
21
21
private static readonly object s_locker = new object ( ) ;
22
22
private static readonly string s_searchControllerName = ControllerExtensions . GetControllerName < ArticulateSearchController > ( ) ;
23
- private static readonly string s_openSearchControllerName = ControllerExtensions . GetControllerName < OpenSearchController > ( ) ;
24
- private static readonly string s_rsdControllerName = ControllerExtensions . GetControllerName < RsdController > ( ) ;
25
- private static readonly string s_wlwControllerName = ControllerExtensions . GetControllerName < WlwManifestController > ( ) ;
23
+ private static readonly string s_openSearchControllerName = ControllerExtensions . GetControllerName < OpenSearchController > ( ) ;
24
+ private static readonly string s_rsdControllerName = ControllerExtensions . GetControllerName < RsdController > ( ) ;
25
+ private static readonly string s_wlwControllerName = ControllerExtensions . GetControllerName < WlwManifestController > ( ) ;
26
26
private static readonly string s_tagsControllerName = ControllerExtensions . GetControllerName < ArticulateTagsController > ( ) ;
27
27
private static readonly string s_rssControllerName = ControllerExtensions . GetControllerName < ArticulateRssController > ( ) ;
28
28
private static readonly string s_markdownEditorControllerName = ControllerExtensions . GetControllerName < MarkdownEditorController > ( ) ;
29
29
private static readonly string s_metaWeblogControllerName = ControllerExtensions . GetControllerName < MetaWeblogController > ( ) ;
30
30
31
-
32
-
33
31
private readonly Dictionary < ArticulateRouteTemplate , ArticulateRootNodeCache > _routeCache = new ( ) ;
34
32
private readonly IControllerActionSearcher _controllerActionSearcher ;
35
33
@@ -44,7 +42,7 @@ public ArticulateRouter(IControllerActionSearcher controllerActionSearcher)
44
42
45
43
public bool TryMatch ( PathString path , RouteValueDictionary routeValues , out ArticulateRootNodeCache articulateRootNodeCache )
46
44
{
47
- foreach ( var item in _routeCache )
45
+ foreach ( var item in _routeCache )
48
46
{
49
47
var templateMatcher = new TemplateMatcher ( item . Key . RouteTemplate , routeValues ) ;
50
48
if ( templateMatcher . TryMatch ( path , routeValues ) )
@@ -116,17 +114,17 @@ public void MapRoutes(HttpContext httpContext, IUmbracoContext umbracoContext)
116
114
MapAuthorsRssRoute ( httpContext , rootNodePath , articulateRootNode , domains ) ;
117
115
118
116
MapSearchRoute ( httpContext , rootNodePath , articulateRootNode , domains ) ;
119
- MapMetaWeblogRoute ( httpContext , rootNodePath , articulateRootNode , domains ) ;
120
- MapManifestRoute ( httpContext , rootNodePath , articulateRootNode , domains ) ;
117
+ MapMetaWeblogRoute ( httpContext , rootNodePath , articulateRootNode , domains ) ;
118
+ MapManifestRoute ( httpContext , rootNodePath , articulateRootNode , domains ) ;
121
119
MapRsdRoute ( httpContext , rootNodePath , articulateRootNode , domains ) ;
122
120
MapOpenSearchRoute ( httpContext , rootNodePath , articulateRootNode , domains ) ;
123
121
124
122
// tags/cats routes are the least specific
125
123
MapTagsAndCategoriesRoute ( httpContext , rootNodePath , articulateRootNode , domains ) ;
126
124
}
127
- }
125
+ }
128
126
}
129
- }
127
+ }
130
128
131
129
/// <summary>
132
130
/// Generically caches a url path for a particular controller
@@ -153,7 +151,7 @@ private void MapRoute(
153
151
_routeCache [ art ] = dynamicRouteValues ;
154
152
}
155
153
156
- dynamicRouteValues . Add ( articulateRootNode . Id , DomainsForContent ( articulateRootNode , domains ) ) ;
154
+ dynamicRouteValues . Add ( articulateRootNode . Id , DomainsForContent ( articulateRootNode , domains ) ) ;
157
155
}
158
156
159
157
private List < Domain > DomainsForContent ( IPublishedContent content , IReadOnlyList < Domain > domains )
@@ -175,7 +173,7 @@ private void MapOpenSearchRoute(HttpContext httpContext, string rootNodePath, IP
175
173
domains ) ;
176
174
}
177
175
178
- private void MapRsdRoute ( HttpContext httpContext , string rootNodePath , IPublishedContent articulateRootNode , List < Domain > domains )
176
+ private void MapRsdRoute ( HttpContext httpContext , string rootNodePath , IPublishedContent articulateRootNode , List < Domain > domains )
179
177
{
180
178
RouteTemplate template = TemplateParser . Parse ( $ "{ rootNodePath } rsd/{{id}}") ;
181
179
MapRoute (
0 commit comments