예제 #1
0
        public object Clone()
        {
            SlidingExpiration exp = new SlidingExpiration();

            exp.Default        = Default;
            exp.LongerEnabled  = LongerEnabled;
            exp.Longer         = Longer;
            exp.DefaultEnabled = DefaultEnabled;
            return(exp);
        }
예제 #2
0
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     _isExpirationEnabled = reader.ReadBoolean();
     _absoluteExpiration  = reader.ReadObject() as AbsoluteExpiration;
     _slidingExpiration   = reader.ReadObject() as SlidingExpiration;
 }
예제 #3
0
 public ExpirationPolicy()
 {
     _isExpirationEnabled = false;
     _absoluteExpiration  = new AbsoluteExpiration();
     _slidingExpiration   = new SlidingExpiration();
 }