public void AddFile(BioFileInfo bioFileInfo) { try { //log.InfoFormat("Adding file {0} with num {1}", bioFileInfo.Filename, bioFileInfo.FileNumber); _fileChooser.AddFile(bioFileInfo); } catch (Exception ex) { log.Error("can't add file ",ex); } }
public ReturnTypes AddFile(FileInfoStruct fileInfo) { log.Info("Add file called"); BioFileInfo bioFileInfo = new BioFileInfo() { Filename = fileInfo.Filename, FileNumber = fileInfo.FileNumber, FileSize = fileInfo.FileSize, Timestamp = fileInfo.ModificationDate, PathType = fileInfo.type == FileEntityTypes.FOLDER ? BioFileInfo.EntityAtPathType.Folder : BioFileInfo.EntityAtPathType.Regular }; CollectorState res = collectorService.AddFile(bioFileInfo); return(T(res)); }