コード例 #1
0
 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);
 }
コード例 #2
0
        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);
        }
コード例 #3
0
 public bool TryGetRouteInfo(Uri uri, out ContentRouteInfo <TResult> contentRouteInfo)
 {
     return(TryGetRouteInfo(uri, null, out contentRouteInfo));
 }