Edit

Share via


TickStatus Struct

Definition

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

[System.Serializable]
public struct TickStatus
[System.Serializable]
[Orleans.GenerateSerializer]
[Orleans.Immutable]
public readonly struct TickStatus
[<System.Serializable>]
type TickStatus = struct
[<System.Serializable>]
[<Orleans.GenerateSerializer>]
[<Orleans.Immutable>]
type TickStatus = struct
Public Structure TickStatus
Inheritance
TickStatus
Attributes

Constructors

TickStatus(DateTime, TimeSpan, DateTime)

Creates a new TickStatus instance.

Properties

CurrentTickTime

Gets the time on the runtime silo when the silo initiated the delivery of this tick.

FirstTickTime

Gets the time at which the first tick of this reminder is due, or was triggered.

Period

Gets the period of the reminder.

Methods

ToString()

Returns the fully qualified type name of this instance.

Applies to