public void GetFileHash(Guid investigationId, SnooperHTTPFileDTO image, string appPath) { using (var uow = this.UnitOfWorkProvider.Create(investigationId)) { var query = (IQueryable <PmFrameBase>)uow.DbContext.Set <PmFrameBase>(); var frames = query.Where(i => image.FrameGuids.Contains(i.Id)).OrderBy(e => e.FirstSeen).ToList(); foreach (var f in frames) { f.PmCapture.FileInfo = new FileInfo(Path.Combine(appPath + NetfoxWebSettings.Default.InvestigationsFolder + NetfoxWebSettings.Default.InvestigationPrefix + investigationId + "/Sources/Captures", f.PmCapture.RelativeFilePath)); } var prepare = image.TimeStamp.Ticks + string.Join(" ", frames) + image.StatusLine; image.Path = "Exports/HTTP/" + HTTPMsg.GetMD5Hash(prepare); } }