예제 #1
0
 /// <summary>
 /// Constructs an acknowledgment from an event notification.
 /// </summary>
 public TsCAeEventAcknowledgement(TsCAeEventNotification notification)
 {
     SourceName    = notification.SourceID;
     ConditionName = notification.ConditionName;
     _activeTime   = notification.ActiveTime;
     Cookie        = notification.Cookie;
 }
        ///////////////////////////////////////////////////////////////////////
        #region ICloneable Members

        /// <summary>
        /// Creates a deep copy of the object.
        /// </summary>
        public virtual object Clone()
        {
            TsCAeEventNotification clone = (TsCAeEventNotification)MemberwiseClone();

            clone._attributes = (AttributeCollection)_attributes.Clone();

            return(clone);
        }