Пример #1
0
        public GroupDocs.Viewer.Results.FileInfo GetFileInfo()
        {
            string cacheKey = "file_info.dat";

            GroupDocs.Viewer.Results.FileInfo viewInfo = this.cache.GetValue(cacheKey, () => this.ReadFileInfo());

            return(viewInfo);
        }
Пример #2
0
 private GroupDocs.Viewer.Results.FileInfo ReadFileInfo()
 {
     using (new CrossProcessLock(this.filePath))
     {
         GroupDocs.Viewer.Results.FileInfo fileInfo = this.viewer.GetFileInfo();
         return(fileInfo);
     }
 }