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); }
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)); }