public static Task <int> FindTagsByIdsAsync(Ares.ModelInfo.IProgressMonitor progressMonitor, IList <FileIdentification> files, IList <String> filesToSearch, CancellationToken token) { return(Task.Factory.StartNew(() => { TagsFromIds processor = new TagsFromIds(progressMonitor, token); return processor.DoFindTags(files, filesToSearch); })); }
public static Task <int> SetTagsFromIdsAsync(Ares.ModelInfo.IProgressMonitor progressMonitor, IList <FileIdentification> files, int languageId, bool interpret, bool album, CancellationToken token) { return(Task.Factory.StartNew(() => { TagsFromIds processor = new TagsFromIds(progressMonitor, token); return processor.DoSetTags(files, languageId, interpret, album); })); }