public virtual bool Reload()
        {
            if (!File.Exists(this.Location))
            {
                return(false);
            }

            this.Contents = () => new StreamReader(VirtualPathProviderHelper.Open(new FileInfo(this.Location).FullName));

            return(true);
        }
        public virtual bool Reload()
        {
            if (!VirtualPathProviderHelper.FileExists(this.Location))
            {
                return(false);
            }

            var file = VirtualPathProviderHelper.GetFile(this.Location);

            this.ContentsReader = () => new StreamReader(VirtualPathProviderHelper.Open(file));

            return(true);
        }
 public FileViewLocationResult(VirtualFile file, string name) : base(file.VirtualPath, name, () => new StreamReader(VirtualPathProviderHelper.Open(file)))
 {
     //_fileHash = VirtualPathProviderHelper.GetFileHash(file.VirtualPath);
     //this._lastModifiedUtc = file.LastWriteTimeUtc;
 }
 public FileViewLocationResult(FileInfo file, string name) : base(file.FullName, name, file.Extension, () => new StreamReader(VirtualPathProviderHelper.Open(file.FullName)))
 {
     this._lastModifiedUtc = file.LastWriteTimeUtc;
 }