private object FindPropertyUnderAppRoot(MetabaseReader reader, MetabasePropertyType propertyType, string relativeVirtualPath, out string matchedPath)
 {
     string str2;
     string endAboPath = this.appAboPath + relativeVirtualPath.Substring(1);
     int index = endAboPath.IndexOf('/', this.appAboPath.Length + 1);
     if (index == -1)
     {
         str2 = endAboPath;
     }
     else
     {
         str2 = endAboPath.Substring(0, index);
     }
     return this.FindHierarchicalProperty(reader, propertyType, str2, endAboPath, out matchedPath);
 }
 private object FindHierarchicalProperty(MetabaseReader reader, MetabasePropertyType propertyType, string startAboPath, string endAboPath, out string matchedPath)
 {
     matchedPath = null;
     while (endAboPath.Length >= startAboPath.Length)
     {
         object data = reader.GetData(endAboPath, propertyType);
         if (data != null)
         {
             matchedPath = endAboPath;
             return data;
         }
         int length = endAboPath.LastIndexOf('/');
         endAboPath = endAboPath.Substring(0, length);
     }
     return null;
 }
        private object FindPropertyUnderAppRoot(MetabaseReader reader, MetabasePropertyType propertyType, string relativeVirtualPath, out string matchedPath)
        {
            string str2;
            string endAboPath = this.appAboPath + relativeVirtualPath.Substring(1);
            int    index      = endAboPath.IndexOf('/', this.appAboPath.Length + 1);

            if (index == -1)
            {
                str2 = endAboPath;
            }
            else
            {
                str2 = endAboPath.Substring(0, index);
            }
            return(this.FindHierarchicalProperty(reader, propertyType, str2, endAboPath, out matchedPath));
        }
 private object FindHierarchicalProperty(MetabaseReader reader, MetabasePropertyType propertyType, string startAboPath, string endAboPath, out string matchedPath)
 {
     matchedPath = null;
     while (endAboPath.Length >= startAboPath.Length)
     {
         object data = reader.GetData(endAboPath, propertyType);
         if (data != null)
         {
             matchedPath = endAboPath;
             return(data);
         }
         int length = endAboPath.LastIndexOf('/');
         endAboPath = endAboPath.Substring(0, length);
     }
     return(null);
 }
Example #5
0
        object FindPropertyUnderAppRoot(MetabaseReader reader, MetabasePropertyType propertyType, string relativeVirtualPath, out string matchedPath)
        {
            string endAboPath = appAboPath + relativeVirtualPath.Substring(1);
            int    index      = endAboPath.IndexOf(IISConstants.AboPathDelimiter, appAboPath.Length + 1);

            string startAboPath;

            if (index == -1)
            {
                startAboPath = endAboPath;
            }
            else
            {
                startAboPath = endAboPath.Substring(0, index);
            }

            return(FindHierarchicalProperty(reader, propertyType, startAboPath, endAboPath, out matchedPath));
        }
Example #6
0
        object FindHierarchicalProperty(MetabaseReader reader, MetabasePropertyType propertyType, string startAboPath, string endAboPath, out string matchedPath)
        {
            matchedPath = null;
            while (endAboPath.Length >= startAboPath.Length)
            {
                object propertyValue = reader.GetData(endAboPath, propertyType);
                if (propertyValue != null)
                {
                    matchedPath = endAboPath;
                    return(propertyValue);
                }

                // Continue the search in the parent
                int index = endAboPath.LastIndexOf(IISConstants.AboPathDelimiter);
                endAboPath = endAboPath.Substring(0, index);
            }

            return(null);
        }
        object FindHierarchicalProperty(MetabaseReader reader, MetabasePropertyType propertyType, string startAboPath, string endAboPath, out string matchedPath)
        {
            matchedPath = null;
            while (endAboPath.Length >= startAboPath.Length)
            {
                object propertyValue = reader.GetData(endAboPath, propertyType);
                if (propertyValue != null)
                {
                    matchedPath = endAboPath;
                    return propertyValue;
                }

                // Continue the search in the parent
                int index = endAboPath.LastIndexOf(IISConstants.AboPathDelimiter);
                endAboPath = endAboPath.Substring(0, index);
            }

            return null;
        }
        object FindPropertyUnderAppRoot(MetabaseReader reader, MetabasePropertyType propertyType, string relativeVirtualPath, out string matchedPath)
        {
            string endAboPath = appAboPath + relativeVirtualPath.Substring(1);
            int index = endAboPath.IndexOf(IISConstants.AboPathDelimiter, appAboPath.Length + 1);

            string startAboPath;
            if (index == -1)
            {
                startAboPath = endAboPath;
            }
            else
            {
                startAboPath = endAboPath.Substring(0, index);
            }

            return FindHierarchicalProperty(reader, propertyType, startAboPath, endAboPath, out matchedPath);
        }
 object FindPropertyUnderAppRoot(MetabaseReader reader, MetabasePropertyType propertyType, string relativeVirtualPath)
 {
     string matchedPath;
     return FindPropertyUnderAppRoot(reader, propertyType, relativeVirtualPath, out matchedPath);
 }
Example #10
0
        object FindPropertyUnderAppRoot(MetabaseReader reader, MetabasePropertyType propertyType, string relativeVirtualPath)
        {
            string matchedPath;

            return(FindPropertyUnderAppRoot(reader, propertyType, relativeVirtualPath, out matchedPath));
        }
 public object GetData(string path, MetabasePropertyType propertyType)
 {
     return this.GetData(path, (uint) propertyType);
 }
 public object GetData(string path, MetabasePropertyType propertyType)
 {
     return(this.GetData(path, (uint)propertyType));
 }
 private object FindPropertyUnderAppRoot(MetabaseReader reader, MetabasePropertyType propertyType, string relativeVirtualPath)
 {
     string str;
     return this.FindPropertyUnderAppRoot(reader, propertyType, relativeVirtualPath, out str);
 }
        private object FindPropertyUnderAppRoot(MetabaseReader reader, MetabasePropertyType propertyType, string relativeVirtualPath)
        {
            string str;

            return(this.FindPropertyUnderAppRoot(reader, propertyType, relativeVirtualPath, out str));
        }