Exemple #1
0
		static bool VirtualPathExists (IApplicationHost appHost, string verb, string uri)
		{
			if (appHost.IsHttpHandler (verb, uri))
				return true;

			VirtualPathProvider vpp = HostingEnvironment.VirtualPathProvider;
			return vpp != null && vpp.FileExists ("/" + uri);
		}
Exemple #2
0
        static bool VirtualPathExists(IApplicationHost appHost, string verb, string uri)
        {
            if (appHost.IsHttpHandler(verb, uri))
            {
                return(true);
            }

            VirtualPathProvider vpp = HostingEnvironment.VirtualPathProvider;

            return(vpp != null && vpp.FileExists("/" + uri));
        }