Beispiel #1
0
        static Type GetCachedType(HttpContext context, string url, bool throwException)
        {
            ICachedXmlDoc doc = PageMapper.GetAssembliesCachedDocument(context);
            Type          t   = doc.GetType(context, url);

            if (t == null && throwException)
            {
                throw new HttpException(404, "The requested resource (" + url + ") is not available.");
            }

            return(t);
        }
Beispiel #2
0
        static Assembly GetCachedAssembly(HttpContext context, string url)
        {
            ICachedXmlDoc doc = PageMapper.GetAssembliesCachedDocument(context);

            return(doc.GetAssembly(context, url));
        }
Beispiel #3
0
        static string GetCachedResource(HttpContext context, string url)
        {
            ICachedXmlDoc doc = PageMapper.GetAssembliesCachedDocument(context);

            return(doc.GetAssemblyResourceName(context, url));
        }