Beispiel #1
0
        private bool IsApplication(string configPath)
        {
            VirtualPath appPathForPath;
            string      str;
            VirtualPath path2;

            GetSiteIDAndVPathFromConfigPath(configPath, out str, out path2);
            if (this._configMapPath2 != null)
            {
                appPathForPath = this._configMapPath2.GetAppPathForPath(str, path2);
            }
            else
            {
                appPathForPath = VirtualPath.CreateAllowNull(this._configMapPath.GetAppPathForPath(str, path2.VirtualPathString));
            }
            return(appPathForPath == path2);
        }
        // IsApplication
        //
        // Given a config Path, is it the Path for an application?
        //
        private bool IsApplication(string configPath)
        {
            VirtualPath appPath;
            string      siteID;
            VirtualPath vpath;

            // Break up into siteID and vpath
            GetSiteIDAndVPathFromConfigPath(configPath, out siteID, out vpath);

            // Retrieve appPath for this
            if (null != _configMapPath2)
            {
                appPath = _configMapPath2.GetAppPathForPath(siteID, vpath);
            }
            else
            {
                appPath = VirtualPath.CreateAllowNull(_configMapPath.GetAppPathForPath(siteID, vpath.VirtualPathString));
            }

            return(appPath == vpath);
        }
        /*
         * Map virtual path (absolute or relative) to physical path
         */

        /// <devdoc>
        ///    <para>Assigns a virtual path, either absolute or relative, to a physical path.</para>
        /// </devdoc>
        public string MapPath(string virtualPath)
        {
            return(Request.MapPath(VirtualPath.CreateAllowNull(virtualPath), TemplateControlVirtualDirectory,
                                   true /*allowCrossAppMapping*/));
        }
 public string MapPath(string virtualPath)
 {
     return(this.Request.MapPath(VirtualPath.CreateAllowNull(virtualPath), base.TemplateControlVirtualDirectory, true));
 }