Example #1
0
    public override void ProgressInTime(GameTime hour)
    {
        base.ProgressInTime(hour);

        if (IsExpired)
        {
            OnExpire?.Invoke();
        }
    }
Example #2
0
    public Todo(bool isExpirable, bool isInternal, GameTime expiryTimestamp)
    {
        IsExpirable     = isExpirable;
        IsInternal      = isInternal;
        ExpiryTimestamp = expiryTimestamp;

        if (ExpiryTimestamp <= CreatedAt)
        {
            OnExpire?.Invoke();
        }
    }
Example #3
0
 public void Expire() => OnExpire?.Invoke(this);
Example #4
0
 protected void FireOnExpire()
 {
     Core.Log.LibVerbose("On Expire timer for key: {0}", Key);
     OnExpire?.Invoke(this, EventArgs.Empty);
 }