void workerMediaInfo_DoWork(object sender, DoWorkEventArgs e) { VideoLocalRepository repVidLocals = new VideoLocalRepository(); // first build a list of files that we already know about, as we don't want to process them again List<VideoLocal> filesAll = repVidLocals.GetAll(); Dictionary<string, VideoLocal> dictFilesExisting = new Dictionary<string, VideoLocal>(); foreach (VideoLocal vl in filesAll) { CommandRequest_ReadMediaInfo cr = new CommandRequest_ReadMediaInfo(vl.VideoLocalID); cr.Save(); } }
void workerMediaInfo_DoWork(object sender, DoWorkEventArgs e) { // first build a list of files that we already know about, as we don't want to process them again IReadOnlyList<VideoLocal> filesAll = RepoFactory.VideoLocal.GetAll(); foreach (VideoLocal vl in filesAll) { CommandRequest_ReadMediaInfo cr = new CommandRequest_ReadMediaInfo(vl.VideoLocalID); cr.Save(); } }