Skip to content

TickStatus Constructors

The status of a tick when the tick is delivered to the registrar grain. In case of failures, it may happen that a tick is not delivered on time. The app can notice such missed ticks as follows. Upon receiving a tick, the app can calculate the theoretical number of ticks since start of the reminder as: curCount = (Now - FirstTickTime) / Period The app can keep track of it as 'count'. Upon receiving a tick, the number of missed ticks = curCount - count - 1 Thereafter, the app can set count = curCount

TickStatus(DateTime, TimeSpan, DateTime)

View source
public TickStatus(DateTime firstTickTime, TimeSpan period, DateTime timeStamp)
Creates a new TickStatus instance.

Parameters

firstTickTimeDateTime
The time at which the first tick of the reminder is due.
periodTimeSpan
The period of the reminder.
timeStampDateTime
The time when delivery of the current tick was initiated.