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