public abstract bool DownloadDataScopeFiles(DateTime valueDate_, FTPScheduleName schedule_, string targetDirectory_);
public abstract bool ProcessRetrievedFiles(SymmetryEntities dc_, FTPScheduleName schedule_, string marketSnapCode_, DateTime valueDate_, string sourceDirectory_);
public override bool DownloadDataScopeFiles(DateTime valueDate_, FTPScheduleName schedule_, string targetDirectory_) { var gotFiles = base.DownloadDataScopeFiles(valueDate_, schedule_, targetDirectory_); if (!gotFiles) if (!ftpFileIsExpected()) return true; return gotFiles; }
public override bool ProcessRetrievedFiles(SymmetryEntities dc_, FTPScheduleName schedule_, string marketSnapCode_, DateTime valueDate_, string sourceDirectory_) { if (schedule_ != ftpScheduleName) { return false; } var file = System.IO.Directory.GetFiles(sourceDirectory_).FirstOrDefault(x => new System.IO.FileInfo(x).Name.StartsWith(ftpScheduleName.ToString()) && x.EndsWith(".csv") && !x.EndsWith("ric.csv")); if(file==null) { // if we weren't expecting a file, then can't complain it's not there! if(!ftpFileIsExpected()) return true; SLog.log.ErrorFormat("File has not been downloaded to [{0}] for schedule [{1}]", sourceDirectory_, ftpScheduleName); return false; } return ProcessRetrievedFTPFile(dc_, marketSnapCode_, valueDate_, file); }
public override bool DownloadDataScopeFiles(DateTime valueDate_, FTPScheduleName scheduleName_, string targetDirectory_) { throw new NotImplementedException(); }
public override bool ProcessRetrievedFiles(SymmetryEntities dc_, FTPScheduleName schedule_, string marketSnapCode_, DateTime valueDate_, string sourceDirectory_) { throw new NotImplementedException(); }