Table of Contents

Class PrimeClockNodaTimerExtensions

Namespace
KZDev.PrimeTime
Assembly
KZDev.PrimeTime.dll

Extension methods for IPrimeClock NodaTime.Duration-based interval timer registration.

public static class PrimeClockNodaTimerExtensions
Inheritance
PrimeClockNodaTimerExtensions

Methods

RegisterAsyncTimeOfDay(IPrimeClock, LocalTimeOfDay, Func<ClockTimerCallbackContext, CancellationToken, ValueTask>, CancellationToken, object?, DayTimeTimerOptions?)

Registers a time-of-day timer with an asynchronous callback that receives context and cancellation token, using BCL LocalTimeOfDay.

RegisterAsyncTimeOfDay(IPrimeClock, LocalTimeOfDay, Func<CancellationToken, ValueTask>, CancellationToken, DayTimeTimerOptions?)

Registers a time-of-day timer with an asynchronous callback, using BCL LocalTimeOfDay.

RegisterAsyncTimeOfDay(IPrimeClock, LocalTime, Func<CancellationToken, ValueTask>, CancellationToken, DayTimeTimerOptions?)

Registers a time-of-day timer with an asynchronous callback.

RegisterAsyncTimer(IPrimeClock, Duration, Duration, Func<CancellationToken, ValueTask>, CancellationToken, IntervalTimerOptions?)

Registers an interval timer with an initial delay and a separate repeat interval (async callback).

RegisterAsyncTimer(IPrimeClock, Duration, Func<ClockTimerCallbackContext, CancellationToken, ValueTask>, CancellationToken, object?, bool, IntervalTimerOptions?)

Registers a one-shot or repeating interval timer with an asynchronous callback that receives context and cancellation token.

RegisterAsyncTimer(IPrimeClock, Duration, Func<CancellationToken, ValueTask>, CancellationToken, bool, IntervalTimerOptions?)

Registers a one-shot or repeating interval timer with an asynchronous callback.

RegisterTimeOfDay(IPrimeClock, LocalTimeOfDay, Action, CancellationToken, DayTimeTimerOptions?)

Registers a time-of-day timer that fires at the given local time each day (sync callback), using BCL LocalTimeOfDay.

RegisterTimeOfDay(IPrimeClock, LocalTimeOfDay, Action<ClockTimerCallbackContext, CancellationToken>, CancellationToken, object?, DayTimeTimerOptions?)

Registers a time-of-day timer with a callback that receives context and cancellation token, using BCL LocalTimeOfDay.

RegisterTimeOfDay(IPrimeClock, LocalTimeOfDay, Action<ClockTimerCallbackContext>, CancellationToken, object?, DayTimeTimerOptions?)

Registers a time-of-day timer with a callback that receives context and state, using BCL LocalTimeOfDay.

RegisterTimeOfDay(IPrimeClock, LocalTime, Action, CancellationToken, DayTimeTimerOptions?)

Registers a time-of-day timer that fires at the given local time each day (sync callback).

RegisterTimeOfDay(IPrimeClock, LocalTime, Action<ClockTimerCallbackContext, CancellationToken>, CancellationToken, object?, DayTimeTimerOptions?)

Registers a time-of-day timer with a callback that receives context and cancellation token.

RegisterTimer(IPrimeClock, Duration, Duration, Action, CancellationToken, IntervalTimerOptions?)

Registers an interval timer with an initial delay and a separate repeat interval (sync callback).

RegisterTimer(IPrimeClock, Duration, Duration, Action<ClockTimerCallbackContext, CancellationToken>, CancellationToken, object?, IntervalTimerOptions?)

Registers an interval timer with an initial delay and a separate repeat interval (sync callback with context and token).

RegisterTimer(IPrimeClock, Duration, Action, CancellationToken, bool, IntervalTimerOptions?)

Registers a one-shot or repeating interval timer with a synchronous callback.

RegisterTimer(IPrimeClock, Duration, Action<ClockTimerCallbackContext, CancellationToken>, CancellationToken, object?, bool, IntervalTimerOptions?)

Registers a one-shot or repeating interval timer with a synchronous callback that receives context and cancellation token.

RegisterTimer(IPrimeClock, Duration, Action<ClockTimerCallbackContext>, CancellationToken, object?, bool, IntervalTimerOptions?)

Registers a one-shot or repeating interval timer with a synchronous callback that receives context and state.