Repository navigation
v1.0.0-rc.2
Pre-release-
Added
ActiveTimersproperty toManualTimeProvider. The property will display the number of currently active timers that have a callback scheduled to be called in the future. -
Allow
ManualTimeProvider.Startto be set using property initializers. -
Made the timer type created by
ManualTimeProvider, theManualTimertype, public, and introduced a protected methodCreateManualTimeronManualTimeProvider. This enables advanced scenarios where a customManualTimeris needed.A custom implementation of
ManualTimercan override theChangemethod and add custom behavior to it.Overriding
CreateManualTimermakes it possible to intercept aTimerCallbackand perform actions before and after the timer callback has been invoked. -
Replace the
AutoAdvanceAmountproperty with theAutoAdvanceBehaviorproperty onManualTimeProvider, and introduce theAutoAdvanceBehaviortype. To automatically advance the time whenGetUtcNow()orGetLocalNow()is called, setAutoAdvanceBehavior.UtcNowAdvanceAmountto aTimeSpanlarger than zero. -
Enable auto advance feature for
GetTimestamp()andGetElapsedTime(long). To automatically advance the time whenGetTimestamp()orGetElapsedTime(long)is called, setAutoAdvanceBehavior.TimestampAdvanceAmountto aTimeSpanlarger than zero. -
ManualTimernow exposes its current configuration.DueTime,Period,IsActive,CallbackTime, andCallbackInvokeCountare now publicly visible. -
Enable auto-advance feature for timers. This enables automatically calling timers callback a specified number of times, by setting the
AutoAdvanceBehavior.TimerAutoTriggerCountproperty to a number larger than zero.
Full Changelog: v1.0.0-rc.1...v1.0.0-rc.2