/// <summary> /// /// </summary> /// <returns></returns> public override bool Save() { lock (syncLock) { if (Blocks.Count > 0) { var dateBeginKeep = getDateBeginKeep(); var blocksSave = Blocks.Where(b => b.IdTime.Index >= dateBeginKeep.Index); if (blocksSave.Count() > 0) { foreach (var block in blocksSave.ToArray()) { var filename = getFileNameDump(block.IdTime, POSTFIX_FILE_DUMP); block.Save(filename); if (OnSave.NotIsNull()) { OnSave(periodTimeFrame); } } return(true); } } } return(false); }