Source/NFX/Time/Event.cs
/// <summary>
/// Invoked by timer, checks all conditions and fires/expires event depending on the status.
/// Returns true if event was fired, false otherwise
/// </summary>
Invoked by timer, checks all conditions and fires/expires event depending on the status.
Returns true if event was fired, false otherwise
Invoked by timer checks all conditions and fires / expires event depending on the status . Returns true if event was fired false otherwise
protected internal bool VisitAndCheck(DateTime utcNow)
      {
        if (Disposed) return false;
        bool fire = false;
        lock(m_Lock)
        {
          if (!this.m_Enabled) return false;
          var localNow = this.UniversalTimeToLocalizedTime(utcNow);
          fire = DoVisit(localNow);
          if (fire) Fire();
        }
        return fire;
      }
protected internal bool VisitAndCheck ( DateTime utcNow ) { if ( Disposed ) return false ; bool fire = false ; lock ( m_Lock ) { if ( ! this . m_Enabled ) return false ; var localNow = this . UniversalTimeToLocalizedTime ( utcNow ) ; fire = DoVisit ( localNow ) ; if ( fire ) Fire ( ) ; } return fire ; }
Invoked by timer, checks all conditions and fires/expires event depending on the status.
Invoked by timer checks all conditions and fires / expires event depending on the status .
utcNow
DateTime