public GroupDocs.Viewer.Results.FileInfo GetFileInfo() { string cacheKey = "file_info.dat"; GroupDocs.Viewer.Results.FileInfo viewInfo = this.cache.GetValue(cacheKey, () => this.ReadFileInfo()); return(viewInfo); }
private GroupDocs.Viewer.Results.FileInfo ReadFileInfo() { using (new CrossProcessLock(this.filePath)) { GroupDocs.Viewer.Results.FileInfo fileInfo = this.viewer.GetFileInfo(); return(fileInfo); } }