public void App_resource_path_should_find_input_builders() { //arrange/act var result = AssemblyResourceManager.IsEmbeddedViewResourcePath("~/Views/InputBuilders/String.aspx"); //assert Assert.IsTrue(result); }
public override string GetCacheKey(string virtualPath) { var checkPath = GetTheEmbedPath(virtualPath); if (AssemblyResourceManager.IsEmbeddedViewResourcePath(checkPath)) { return(null); } return(base.GetCacheKey(virtualPath)); }
public override bool FileExists(string virtualPath) { bool flag = base.FileExists(virtualPath); if (!flag) { var checkPath = this.GetTheEmbedPath(virtualPath); return(AssemblyResourceManager.IsEmbeddedViewResourcePath(checkPath)); } return(flag); }
public override System.Web.Caching.CacheDependency GetCacheDependency(string virtualPath, System.Collections.IEnumerable virtualPathDependencies, DateTime utcStart) { if (AssemblyResourceManager.IsEmbeddedViewResourcePath(virtualPath)) { return(null); } else { string[] dependencies = virtualPathDependencies.OfType <string>().Where(s => !s.ToLower().Contains("/views/inputbuilders")).ToArray(); return(base.GetCacheDependency(virtualPath, dependencies, utcStart)); } }
public override VirtualFile GetFile(string virtualPath) { if (AssemblyResourceManager.IsEmbeddedViewResourcePath(virtualPath) && !base.FileExists(virtualPath)) { var resourceStore = AssemblyResourceManager.GetResourceStoreFromVirtualPath(virtualPath); return(new AssemblyResourceVirtualFile(virtualPath, resourceStore)); } else { return(base.GetFile(virtualPath)); } }
public override CacheDependency GetCacheDependency(string virtualPath, IEnumerable virtualPathDependencies, DateTime utcStart) { foreach (object obj2 in virtualPathDependencies) { var checkpath = GetTheEmbedPath(obj2.ToString()); if (AssemblyResourceManager.IsEmbeddedViewResourcePath(checkpath)) { return(null); } } string[] strArray = (from s in virtualPathDependencies.OfType <string>() where !s.ToLower().Contains("/views/inputbuilders") select s).ToArray <string>(); return(base.GetCacheDependency(virtualPath, strArray, utcStart)); }
public override bool FileExists(string virtualPath) { bool exists = base.FileExists(virtualPath); return(exists ? exists : AssemblyResourceManager.IsEmbeddedViewResourcePath(virtualPath)); }