AdjustmentAction Enum
Definition
- Namespace
- Bodu.Globalization.Calendar
- Assembly
- Bodu.Globalization.Calendar.dll
- Package
- Bodu.Globalization.Calendar 1.3.0
- Source
- AdjustmentAction.cs
Identifies how an adjustment policy transforms a calculated occurrence once its trigger is active.
public enum AdjustmentAction
- Extension Methods
Fields
None = 0Leave the occurrence unchanged.
AddDays = 1Shift the occurrence by a fixed number of days.
MoveToNextWeekday = 2Move the occurrence to the configured weekday (ActionWeekday) on or after the calculated date; without a configured weekday the date is unchanged.
MoveToPreviousWeekday = 3Move the occurrence to the configured weekday (ActionWeekday) on or before the calculated date; without a configured weekday the date is unchanged.
MoveToNextWorkingDay = 4Move the occurrence forward, starting the day after the calculated date, to the next day the policy's skip rules do not block (by default, the next working-week day).
MoveToPreviousWorkingDay = 5Move the occurrence backward, starting the day before the calculated date, to the previous day the policy's skip rules do not block (by default, the previous working-week day).
ReplaceWithRule = 6Replace the occurrence date with the date of another rule resolved for the same year, identified by the policy's notable-date and rule references.
Suppress = 7Suppress the occurrence entirely.
Custom = 8Delegate the observed-date computation to a caller-supplied IAdjustmentHandler resolved through the policy's handler key.
Remarks
Working-day aware actions treat the days outside the resource's working week as non-working. Whether they also step over days already claimed by other non-working occurrences is controlled by the owning policy's SkipNonWorkingDates flag.
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |