Пример #1
0
        /// <summary>
        /// Handles the specified message.
        /// </summary>
        /// <param name="message">The message.</param>
        public void Handle(AssessmentRecurrenceRevisedEvent message)
        {
            if (message.Recurrence != AssessmentReminderRecurrence.OneTime && (message.End == null || message.End == DateTime.MinValue))
            {
                return;
            }

            CreateAssessmentReminders(message.Key);
        }
Пример #2
0
 private void Apply(AssessmentRecurrenceRevisedEvent assessmentRecurrenceRevisedEvent)
 {
     ReminderRecurrence = assessmentRecurrenceRevisedEvent.Recurrence;
     End = assessmentRecurrenceRevisedEvent.End;
 }