public bool TryGetRouteInfo(Uri uri, object dynamicVariablesValues, out ContentRouteInfo <TResult> contentRouteInfo) { contentRouteInfo = null; for (int i = 0; i < Items.Count && contentRouteInfo == null; i++) { Items[i].TryGetRouteInfo(uri, dynamicVariablesValues, out contentRouteInfo); } return(contentRouteInfo != null); }
public bool TryGetRouteInfo(Uri uri, object dynamicConstraintsValues, out ContentRouteInfo <TResult> contentRouteInfo) { IDictionary <string, object> dynValues = ObjectToDictionary(dynamicConstraintsValues); IDictionary <string, string> variables; if (Match(uri, dynValues, out variables)) { contentRouteInfo = new ContentRouteInfo <TResult>(GetHashCode(), Pattern, value, variables); return(true); } contentRouteInfo = null; return(false); }
public bool TryGetRouteInfo(Uri uri, out ContentRouteInfo <TResult> contentRouteInfo) { return(TryGetRouteInfo(uri, null, out contentRouteInfo)); }