Esempio n. 1
0
        public void Complete(RunStatus runStatus)
        {
            config.LastRunStatus = runStatus;
            trace.Trace(TraceEventType.Information, (int)EventId.SavingLastSyncDate,
                        "Set Last Sync Date to: " + config.LastSyncDate);

            var completeDate = DateTime.UtcNow;

            config.LastSyncDate = completeDate;
            trace.Trace(TraceEventType.Information, (int)EventId.SavingLastRunStatus, "Set Last Run Status to: " + runStatus);

            config.RemoveNonPersistableAttributes();
            organisationService.Update(config.Entity);

            trace.Trace(runStatus.ToTraceEventType(), runStatus.ToSyncEventId(),
                        $"Completed Syncing Rate with Status: {runStatus} @ {completeDate}");
        }
Esempio n. 2
0
 public virtual void SaveNextRunDate(IFExConfig config, DateTime nextRunDate)
 {
     config.NextRunDate = nextRunDate;
     config.RemoveNonPersistableAttributes();
     organisationService.Update(config.Entity);
 }