/// <summary> /// Add exclusion dates to <see cref="HolidayCalendar"/> /// </summary> /// <param name="id"></param> /// <param name="daysExcludedUtc"></param> public void AddHolidayCalendarExclusionDates(Guid id, IList <DateTime> daysExcludedUtc) { var name = _persistanceStore.GetCalendarName(id); var holidays = (HolidayCalendar)_scheduler.GetCalendar(name); if (null != daysExcludedUtc && daysExcludedUtc.Count > 0) { foreach (var dateTime in daysExcludedUtc) { holidays.AddExcludedDate(dateTime); } } _scheduler.AddCalendar(name, holidays, true, true); }