Interface IOffPeakService
- Namespace
- CMS.ContactManagement
- Assembly
- CMS.ContactManagement.dll
Interface for deciding when in the day is off peak time, meaning when is the best to run tasks with bigger load.
[Obsolete("Interface was not intended for public use and will be removed in the next version.")]
[ObsoleteSince(29, 5)]
public interface IOffPeakService
- Extension Methods
Methods
GetNextOffPeakPeriodStart(DateTime)
Returns the exact System.DateTime of next off-peak period.
DateTime GetNextOffPeakPeriodStart(DateTime dateTime)
Parameters
dateTime
DateTimeTimestamp of from when to look for next off-peak period.
Returns
- DateTime
System.DateTime of next off-peak period.
IsOffPeak(DateTime)
Checks whether given System.DateTime is in off-peak period.
bool IsOffPeak(DateTime dateTime)
Parameters
dateTime
DateTimeThe date to check off-peak period for
Returns
- bool
True if
dateTime
is in off-peak, false otherwise.