/// <summary> /// Calls the EndUpdate method of the specified archive. /// </summary> public void EndUpdate(HistoricalArchiveLogic archiveLogic, int deviceNum, DateTime timestamp) { try { archiveLogic.Lock(); archiveLogic.EndUpdate(deviceNum, timestamp); archiveLogic.LastWriteTime = DateTime.UtcNow; } catch (Exception ex) { log.WriteException(ex, ServerPhrases.ErrorInArchive, nameof(EndUpdate), archiveLogic.Code); } finally { Unlock(archiveLogic); } }