/// <summary> /// <paramref name="moment"/>를 나타내는 TimeLineMoment를 키로 하고, Value로 <paramref name="period"/> 를 추가합니다. /// </summary> protected void AddPeriod(DateTime moment, ITimePeriod period) { if (IsDebugEnabled) { log.Debug("TimeLineMoment를 추가합니다... moment=[{0}], period=[{1}]", moment, period); } lock (_syncLock) { var timeLineMoment = Find(moment); if (timeLineMoment == null) { timeLineMoment = new TimeLineMoment(moment); _timeLineMoments.Add(timeLineMoment); } timeLineMoment.Periods.Add(period); if (IsDebugEnabled) { log.Debug("TimeLineMoment를 추가했습니다!!! timeLineMoment=[{0}]", timeLineMoment); } } }
/// <summary> /// <paramref name="moment"/>를 나타내는 TimeLineMoment를 키로 하고, Value로 <paramref name="period"/> 를 추가합니다. /// </summary> protected void AddPeriod(DateTime moment, ITimePeriod period) { if(IsDebugEnabled) log.Debug("TimeLineMoment를 추가합니다... moment=[{0}], period=[{1}]", moment, period); lock(_syncLock) { var timeLineMoment = Find(moment); if(timeLineMoment == null) { timeLineMoment = new TimeLineMoment(moment); _timeLineMoments.Add(timeLineMoment); } timeLineMoment.Periods.Add(period); if(IsDebugEnabled) log.Debug("TimeLineMoment를 추가했습니다!!! timeLineMoment=[{0}]", timeLineMoment); } }