Table of Contents

Class Cycle

Namespace
Pillars.Schedules.Models
Assembly
Pillars.dll

A Cycle describes a method to be run in a cyclic manner, e.g. every 15 minutes. All cycles are bound to a common timer.

public sealed class Cycle
Inheritance
Cycle
Inherited Members

Constructors

Cycle(CycleAttribute, MethodInfo, CycleTracker, DateTime?)

A Cycle describes a method to be run in a cyclic manner, e.g. every 15 minutes. All cycles are bound to a common timer.

Fields

IsBeingTriggered

Flag to indicate if this cycle is currently being triggered. The cycletimer may elapse while the cycle is already triggered, so this is needed

Properties

CanCatchup

Indicator if the regex allows for a catchup of missed schedules

CycleTracker
HasHistory
Info
InfoText
IsVolatile

A cycle is considered volatile, if it does not keep track of a history.

LastTrigger

DateTime the last time this was triggered since server start

MethodInfo
MinutesToNext

The minutes until the next trigger

TriggerCount

The trigger count during THIS runtime (resets to 0 after server start. Does not include catchups)

Methods

SetLastTrigger(DateTime, bool)

Sets the last trigger and increments the counter