Exemplo n.º 1
0
        public object Clone()
        {
            AbsoluteExpiration exp = new AbsoluteExpiration();

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