Esempio n. 1
0
 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);
     }
 }
Esempio n. 2
0
        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));
        }