Exemplo n.º 1
0
        /// <summary>
        /// Parses request path into matrix parameters.
        /// </summary>
        /// <param name="path">Request path.</param>
        /// <param name="pathWithoutMatrixParams">Request path without matrix parameters.</param>
        /// <returns>Matrix parameters for the last path part.</returns>
        protected virtual IQueryCollection Parse(string path, out string pathWithoutMatrixParams)
        {
            MatrixCollection matrix = null;

            string[] parts = path.Split('/');
            for (int i = 0; i < parts.Length; i++)
            {
                string part = parts[i];
                matrix   = GetMatrixParams(part, out part);
                parts[i] = part;
            }

            pathWithoutMatrixParams = String.Join("/", parts);
            return(matrix ?? new MatrixCollection());
        }
 public MatrixCollection(MatrixCollection store) : base(store)
 {
 }