Пример #1
0
 private void StartNewSession(DateTime modifiedDate)
 {
     _currentSessionContext = new SessionContext {
             State = SessionState.New,
             StartTime = DateTime.Now,
             JobContexts = new List<JobContext>(),
             MinimumModifiedDate = modifiedDate};
         Logger.Info("Start sync session...");
         _db.SessionContexts.Add(_currentSessionContext);
 }
Пример #2
0
 private void ResumeLastSession(SessionContext lastContext)
 {
     _currentSessionContext = lastContext; //resume
     CurrentSessionContext.State = SessionState.Resumed;
     Logger.Info("Resuming sync session...");
 }