Ejemplo n.º 1
0
        /// <summary>
        /// Generates a clone of this security setting configuration.
        /// </summary>
        /// <returns></returns>
        public override object Clone()
        {
            FileBasedSessionCache newValue = new FileBasedSessionCache();

            CopyTo(newValue);
            return(newValue);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Copies the settings to another instance of this class.
 /// </summary>
 /// <param name="value">The target instance.</param>
 protected virtual void CopyTo(FileBasedSessionCache value)
 {
     base.CopyTo(value);
     value.CachingMode = CachingMode;
     value.Duration    = Duration;
 }