Imported Upstream version 5.4.0.167

Former-commit-id: 5624ac747d633e885131e8349322922b6a59baaa
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2017-08-21 15:34:15 +00:00
parent e49d6f06c0
commit 536cd135cc
12856 changed files with 563812 additions and 223249 deletions

View File

@ -80,7 +80,7 @@
}
set {
// The parser will throw for invalid routes. We don't have to worry
// about _parsedRoute getting out of [....] with _url since the latter
// about _parsedRoute getting out of sync with _url since the latter
// won't get set unless we can parse the route.
_parsedRoute = RouteParser.Parse(value);

View File

@ -81,6 +81,12 @@
if (!String.IsNullOrEmpty(name)) {
_namedMap[name] = item;
}
// RouteBase doesn't have handler info, so we only log Route.RouteHandler
var route = item as Route;
if (route != null && route.RouteHandler != null) {
TelemetryLogger.LogHttpHandler(route.RouteHandler.GetType());
}
}
[SuppressMessage("Microsoft.Design", "CA1054:UriParametersShouldNotBeStrings",