The recurrence domain model aims at providing support for defining different kinds of recurrence with daylight saving time support. Daylight saving time support means that ambiguous DateTime are shifted by applying the following conversion: .ToUniversalTime().ToLocalTime(). For example the following ambiguous DateTime 27/03/2011 02:30:00 (CET) becomes 27/03/2011 03:30:30 (CET).

This domain model has been designed in order to be independent and reusable by others components (like the ScheduledTimer or the ScheduledDelay activity).
You will find here after a description of the recurrence domain model.

image

Type Description
Recurrence
  • Provides base methods for occurrence scheduling
OccurrenceSchedule
  • Represents the schedule of an occurrence
PeriodRecurrence
  • Supports recurrence based on a Period (ex: every 2 hours)
DailyRecurrence
  • Supports recurrence based on a Day (ex: every two days)
  • Supports recurrence based on distinct WeekDays (ex: every Tuesday & Thursday)
WeeklyRecurrence
  • Supports recurrence based on distinct WeekDays (ex: every Tuesday & Thursday)
  • Support recurrence based on distinct Weeks (ex: every 2 weeks)
  • Statefull recurrence (in order to support recurrence based on distinct Weeks)
MonthlyRecurrence
  • Supports recurrence based on distinct Months (ex: every January & April)
  • Supports recurrence based on a DayOfMonth (ex: every 23rd)
  • Supports recurrence based on a WeekDaysOfMonth (ex: every Second Tuesday & Thursday of the month)
  • AnyWeekDays indicates if any or all the specified WeekDays are considered when determining the next occurrence
  • When combining AnyWeekDays with the Last position, the latest date and time matching the specified WeekDays is considered

Last edited Jan 9, 2012 at 9:17 PM by odanvin, version 3

Comments

No comments yet.