Пример #1
0
 /// <summary>
 /// Set no lock.
 /// </summary>
 public void Set()
 {
     _lockTTL       = _ttl.Ticks;
     _lastTimeStamp = CachingUtils.DiffTicks(DateTime.Now);
 }
Пример #2
0
 /// <summary>
 /// Verifica se já expirou.
 /// </summary>
 /// <returns></returns>
 public bool HasExpired()
 {
     return(SortKey.CompareTo(CachingUtils.DiffTicks(DateTime.Now)) < 0);
 }