Пример #1
0
        private void DoWork(int fileId, string fileName)
        {
            Logger.Debug("Processing file {0} for MediaInfo retrieval", fileName);

            MediaInfoData mediaInfo = null;

            try
            {
                mediaInfo = new MediaInfoData(fileName);
            } 
            catch (Exception e)
            {
                Logger.ErrorException(string.Format("Error while retrieving media info for file: {0}", fileName), e);
            }

            RetrievalCompleted(new MediaInfoRetrieverCompletedEventArgs(fileId, fileName, mediaInfo));
        }
 public MediaInfoRetrieverCompletedEventArgs(int fileId, string fileName, MediaInfoData mediaInfo)
 {
     this.FileId = fileId;
     this.FileName = fileName;
     this.MediaInfo = mediaInfo;
 }