コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="NotificationVersionOne" /> class from the specified instance.
        /// </summary>
        /// <param name="other">
        /// The instance from which the new instance is to be initialized.
        /// </param>
        /// <exception cref="ArgumentNullException">
        /// Thrown if <paramref name="other" /> is null.
        /// </exception>
        public NotificationVersionOne(NotificationVersionOne other)
        {
            if (other == null)
            {
                throw new ArgumentNullException(nameof(other));
            }

            Init(other.Id, other.RuleId, other.RuleKey, other.PhysicalLocation, other.Message, other.Level, other.ThreadId, other.Time, other.Exception, other.Properties);
        }
コード例 #2
0
        public virtual NotificationVersionOne VisitNotificationVersionOne(NotificationVersionOne node)
        {
            if (node != null)
            {
                node.PhysicalLocation = VisitNullChecked(node.PhysicalLocation);
                node.Exception        = VisitNullChecked(node.Exception);
            }

            return(node);
        }
コード例 #3
0
 public bool ValueEquals(NotificationVersionOne other) => ValueComparer.Equals(this, other);