Table of Contents

Class DailyPeriodicTimer

Namespace
AdvanceFileUpload.API
Assembly
AdvanceFileUpload.API.dll

A timer that provides periodic ticks for executing tasks on a daily basis.

public sealed class DailyPeriodicTimer : IPeriodicTimer, IDisposable
Inheritance
DailyPeriodicTimer
Implements
Inherited Members

Properties

Period

Gets the period of the timer.

public TimeSpan Period { get; }

Property Value

TimeSpan

Methods

Dispose()

Releases the resources used by the timer.

public void Dispose()

WaitForNextTickAsync(CancellationToken)

Waits asynchronously for the next tick of the timer.

public ValueTask<bool> WaitForNextTickAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

A token to monitor for cancellation requests.

Returns

ValueTask<bool>

A task that resolves to true if the timer ticked, or false if the wait was canceled.