UtcUpdate() 공개 메소드

public UtcUpdate ( System.Runtime.Caching.MemoryCacheEntry entry, DateTime utcAbsExp ) : void
entry System.Runtime.Caching.MemoryCacheEntry
utcAbsExp DateTime
리턴 void
예제 #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);
         }
     }
 }
예제 #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);
         }
     }
 }