Table of Contents

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 = 0

Leave the occurrence unchanged.

AddDays = 1

Shift the occurrence by a fixed number of days.

MoveToNextWeekday = 2

Move the occurrence to the configured weekday (ActionWeekday) on or after the calculated date; without a configured weekday the date is unchanged.

MoveToPreviousWeekday = 3

Move the occurrence to the configured weekday (ActionWeekday) on or before the calculated date; without a configured weekday the date is unchanged.

MoveToNextWorkingDay = 4

Move 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 = 5

Move 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 = 6

Replace 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 = 7

Suppress the occurrence entirely.

Custom = 8

Delegate 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

ProductVersions
.NET8, 10

See Also