public int TransferErrorLogs(IStatusDB destDB) { // transfers error logs with 'is_transferred' of false to the destination (cloud) db int result = 0; List <TUFStatus.Domain.Local.Logs.ErrorLogs> errorLogs; try { var repository = new TUFStatus.DAL.Repositories.Repository <ISession, Domain.Local.Logs.ErrorLogs>(session); errorLogs = repository.FilterBy(x => x.is_transferred == 0).ToList(); result = destDB.AppendErrorLogs(errorLogs, session); } catch (Exception ex) { ErrorHandler.Instance.HandleError(ActionLog.ActionTypes.LogTransfer, "", "There was an error transferring the local action logs to the cloud:", ex.Message); return(-1); } return(result); }
public int TransferErrorLogs(IStatusDB DestDB) { throw new NotImplementedException(); }