public bool        RequestedFileIsVirtual()
 {
     return(this.FileExtension != null && System.IO.File.Exists(this.Context.Server.MapPath(VirtualPath.Combine('/', this.RequestDirectoryPath, ".dep"))));
 }
            private string[]    GetDependencyEntries(string currentDependencyDirectoryPath)
            {
                string currentDependencyFilePath = VirtualPath.Combine('/', currentDependencyDirectoryPath, ".dep");

                return(System.IO.File.ReadAllLines(this.Context.Server.MapPath(currentDependencyFilePath)));
            }
 private void        AddMainFileContents(string byParent, string fromPath, bool providedThat)
 {
     providedThat.then(proceedWith: () => this.AddStaticFileContentIfItExists(byParent, VirtualPath.Combine('/', fromPath, this.FileExtension)));
 }
 private void        AddPostContentsIfTheyExist(string byParent, string fromPath)
 {
     this.AddStaticFileContentIfItExists(byParent, VirtualPath.Combine('/', fromPath, this.FileExtension + ".post"));
 }
            private void        AddDependencyContent(string fromDependency, string relativeTo)
            {
                string rawDependencyPath  = VirtualPath.Combine('/', "~/", fromDependency.Replace(".", "/"));
                string dependencyFilePath = VirtualPath.Combine('/', System.Web.VirtualPathUtility.GetDirectory(rawDependencyPath), System.Web.VirtualPathUtility.GetFileName(rawDependencyPath));

                if (!this.AddStaticFileContentIfItExists(VirtualPath.Combine('/', relativeTo, this.FileExtension), fromPath: dependencyFilePath + FileExtension))
                {
                    if (!this.AddVirtualizedFileContentIfItExists(VirtualPath.Combine('/', relativeTo, this.FileExtension), fromPath: dependencyFilePath))
                    {
                        this.LogMissing(file: dependencyFilePath + FileExtension, requiredBy: VirtualPath.Combine('/', relativeTo, FileExtension));
                    }
                }
            }