UtcUpdate() public method

public UtcUpdate ( System.Runtime.Caching.MemoryCacheEntry entry, DateTime utcAbsExp ) : void
entry System.Runtime.Caching.MemoryCacheEntry
utcAbsExp DateTime
return void
Ejemplo n.º 1
0
 internal void UpdateSlidingExp(DateTime utcNow, CacheExpires expires)
 {
     if (_slidingExp > TimeSpan.Zero)
     {
         DateTime utcNewExpires = utcNow + _slidingExp;
         if (utcNewExpires - _utcAbsExp >= CacheExpires.MIN_UPDATE_DELTA || utcNewExpires < _utcAbsExp)
         {
             expires.UtcUpdate(this, utcNewExpires);
         }
     }
 }
Ejemplo n.º 2
0
 internal void UpdateSlidingExp(DateTime utcNow, CacheExpires expires)
 {
     if (this._slidingExp > TimeSpan.Zero)
     {
         DateTime utcNewExpires = utcNow + this._slidingExp;
         if (((utcNewExpires - this._utcAbsExp) >= CacheExpires.MIN_UPDATE_DELTA) || (utcNewExpires < this._utcAbsExp))
         {
             expires.UtcUpdate(this, utcNewExpires);
         }
     }
 }
 internal void UpdateSlidingExp(DateTime utcNow, CacheExpires expires) {
     if (_slidingExp > TimeSpan.Zero) {
         DateTime utcNewExpires = utcNow + _slidingExp;
         if (utcNewExpires - _utcAbsExp >= CacheExpires.MIN_UPDATE_DELTA || utcNewExpires < _utcAbsExp) {
             expires.UtcUpdate(this, utcNewExpires);
         }
     }
 }
 internal void UpdateSlidingExp(DateTime utcNow, CacheExpires expires)
 {
     if (this._slidingExp > TimeSpan.Zero)
     {
         DateTime utcNewExpires = utcNow + this._slidingExp;
         if (((utcNewExpires - this._utcAbsExp) >= CacheExpires.MIN_UPDATE_DELTA) || (utcNewExpires < this._utcAbsExp))
         {
             expires.UtcUpdate(this, utcNewExpires);
         }
     }
 }