Beispiel #1
0
		/// <summary>
		/// Dispatches to the specific visit method for this MIME entity.
		/// </summary>
		/// <remarks>
		/// This default implementation for <see cref="MimeKit.TextPart"/> nodes
		/// calls <see cref="MimeKit.MimeVisitor.VisitTextPart"/>. Override this
		/// method to call into a more specific method on a derived visitor class
		/// of the <see cref="MimeKit.MimeVisitor"/> class. However, it should still
		/// support unknown visitors by calling
		/// <see cref="MimeKit.MimeVisitor.VisitTextPart"/>.
		/// </remarks>
		/// <param name="visitor">The visitor.</param>
		/// <exception cref="System.ArgumentNullException">
		/// <paramref name="visitor"/> is <c>null</c>.
		/// </exception>
		public override void Accept (MimeVisitor visitor)
		{
			if (visitor == null)
				throw new ArgumentNullException (nameof (visitor));

			visitor.VisitTextPart (this);
		}
Beispiel #2
0
        /// <summary>
        /// Dispatches to the specific visit method for this MIME entity.
        /// </summary>
        /// <remarks>
        /// This default implementation for <see cref="MimeKit.MimeEntity"/> nodes
        /// calls <see cref="MimeKit.MimeVisitor.VisitMimeEntity"/>. Override this
        /// method to call into a more specific method on a derived visitor class
        /// of the <see cref="MimeKit.MimeVisitor"/> class. However, it should still
        /// support unknown visitors by calling
        /// <see cref="MimeKit.MimeVisitor.VisitMimeEntity"/>.
        /// </remarks>
        /// <param name="visitor">The visitor.</param>
        /// <exception cref="System.ArgumentNullException">
        /// <paramref name="visitor"/> is <c>null</c>.
        /// </exception>
        public virtual void Accept(MimeVisitor visitor)
        {
            if (visitor == null)
            {
                throw new ArgumentNullException("visitor");
            }

            visitor.VisitMimeEntity(this);
        }
        /// <summary>
        /// Dispatches to the specific visit method for this MIME entity.
        /// </summary>
        /// <remarks>
        /// This default implementation for <see cref="MimeKit.MessageDeliveryStatus"/> nodes
        /// calls <see cref="MimeKit.MimeVisitor.VisitMessageDeliveryStatus"/>. Override this
        /// method to call into a more specific method on a derived visitor class
        /// of the <see cref="MimeKit.MimeVisitor"/> class. However, it should still
        /// support unknown visitors by calling
        /// <see cref="MimeKit.MimeVisitor.VisitMessageDeliveryStatus"/>.
        /// </remarks>
        /// <param name="visitor">The visitor.</param>
        /// <exception cref="System.ArgumentNullException">
        /// <paramref name="visitor"/> is <c>null</c>.
        /// </exception>
        public override void Accept(MimeVisitor visitor)
        {
            if (visitor == null)
            {
                throw new ArgumentNullException("visitor");
            }

            visitor.VisitMessageDeliveryStatus(this);
        }
Beispiel #4
0
        /// <summary>
        /// Dispatches to the specific visit method for this MIME entity.
        /// </summary>
        /// <remarks>
        /// This default implementation for <see cref="MimeKit.MessagePartial"/> nodes
        /// calls <see cref="MimeKit.MimeVisitor.VisitMessagePartial"/>. Override this
        /// method to call into a more specific method on a derived visitor class
        /// of the <see cref="MimeKit.MimeVisitor"/> class. However, it should still
        /// support unknown visitors by calling
        /// <see cref="MimeKit.MimeVisitor.VisitMessagePartial"/>.
        /// </remarks>
        /// <param name="visitor">The visitor.</param>
        /// <exception cref="System.ArgumentNullException">
        /// <paramref name="visitor"/> is <c>null</c>.
        /// </exception>
        public override void Accept(MimeVisitor visitor)
        {
            if (visitor == null)
            {
                throw new ArgumentNullException(nameof(visitor));
            }

            visitor.VisitMessagePartial(this);
        }
        /// <summary>
        /// Dispatches to the specific visit method for this MIME entity.
        /// </summary>
        /// <remarks>
        /// This default implementation for <see cref="MimeKit.MimeEntity"/> nodes
        /// calls <see cref="MimeKit.MimeVisitor.VisitMimeEntity"/>. Override this
        /// method to call into a more specific method on a derived visitor class
        /// of the <see cref="MimeKit.MimeVisitor"/> class. However, it should still
        /// support unknown visitors by calling
        /// <see cref="MimeKit.MimeVisitor.VisitMimeEntity"/>.
        /// </remarks>
        /// <param name="visitor">The visitor.</param>
        /// <exception cref="System.ArgumentNullException">
        /// <paramref name="visitor"/> is <c>null</c>.
        /// </exception>
        public override void Accept(MimeVisitor visitor)
        {
            if (visitor == null)
            {
                throw new ArgumentNullException("visitor");
            }

            visitor.VisitMultipartAlternative(this);
        }
        /// <summary>
        /// Dispatches to the specific visit method for this MIME entity.
        /// </summary>
        /// <remarks>
        /// This default implementation for <see cref="MimeKit.MessageDispositionNotification"/> nodes
        /// calls <see cref="MimeKit.MimeVisitor.VisitMessageDispositionNotification"/>. Override this
        /// method to call into a more specific method on a derived visitor class
        /// of the <see cref="MimeKit.MimeVisitor"/> class. However, it should still
        /// support unknown visitors by calling
        /// <see cref="MimeKit.MimeVisitor.VisitMessageDispositionNotification"/>.
        /// </remarks>
        /// <param name="visitor">The visitor.</param>
        /// <exception cref="System.ArgumentNullException">
        /// <paramref name="visitor"/> is <c>null</c>.
        /// </exception>
        public override void Accept(MimeVisitor visitor)
        {
            if (visitor == null)
            {
                throw new ArgumentNullException(nameof(visitor));
            }

            visitor.VisitMessageDispositionNotification(this);
        }
        /// <summary>
        /// Dispatches to the specific visit method for this MIME entity.
        /// </summary>
        /// <remarks>
        /// This default implementation for <see cref="MimeKit.MultipartReport"/> nodes
        /// calls <see cref="MimeKit.MimeVisitor.VisitMultipartReport"/>. Override this
        /// method to call into a more specific method on a derived visitor class
        /// of the <see cref="MimeKit.MimeVisitor"/> class. However, it should still
        /// support unknown visitors by calling
        /// <see cref="MimeKit.MimeVisitor.VisitMultipartReport"/>.
        /// </remarks>
        /// <param name="visitor">The visitor.</param>
        /// <exception cref="System.ArgumentNullException">
        /// <paramref name="visitor"/> is <c>null</c>.
        /// </exception>
        public override void Accept(MimeVisitor visitor)
        {
            if (visitor == null)
            {
                throw new ArgumentNullException(nameof(visitor));
            }

            visitor.VisitMultipartReport(this);
        }
        /// <summary>
        /// Dispatches to the specific visit method for this MIME entity.
        /// </summary>
        /// <remarks>
        /// This default implementation for <see cref="TextRfc822Headers"/> nodes
        /// calls <see cref="MimeVisitor.VisitTextRfc822Headers"/>. Override this
        /// method to call into a more specific method on a derived visitor class
        /// of the <see cref="MimeVisitor"/> class. However, it should still
        /// support unknown visitors by calling
        /// <see cref="MimeVisitor.VisitTextRfc822Headers"/>.
        /// </remarks>
        /// <param name="visitor">The visitor.</param>
        /// <exception cref="System.ArgumentNullException">
        /// <paramref name="visitor"/> is <c>null</c>.
        /// </exception>
        public override void Accept(MimeVisitor visitor)
        {
            if (visitor == null)
            {
                throw new ArgumentNullException(nameof(visitor));
            }

            visitor.VisitTextRfc822Headers(this);
        }
Beispiel #9
0
        /// <summary>
        /// Dispatches to the specific visit method for this MIME entity.
        /// </summary>
        /// <remarks>
        /// This default implementation for <see cref="MimeKit.MimeEntity"/> nodes
        /// calls <see cref="MimeKit.MimeVisitor.VisitMimeEntity"/>. Override this
        /// method to call into a more specific method on a derived visitor class
        /// of the <see cref="MimeKit.MimeVisitor"/> class. However, it should still
        /// support unknown visitors by calling
        /// <see cref="MimeKit.MimeVisitor.VisitMimeEntity"/>.
        /// </remarks>
        /// <param name="visitor">The visitor.</param>
        /// <exception cref="System.ArgumentNullException">
        /// <paramref name="visitor"/> is <c>null</c>.
        /// </exception>
        public override void Accept(MimeVisitor visitor)
        {
            if (visitor == null)
            {
                throw new ArgumentNullException("visitor");
            }

            visitor.VisitMimePart(this);
        }
		/// <summary>
		/// Dispatches to the specific visit method for this MIME entity.
		/// </summary>
		/// <remarks>
		/// This default implementation for <see cref="MimeKit.MultipartAlternative"/> nodes
		/// calls <see cref="MimeKit.MimeVisitor.VisitMultipartAlternative"/>. Override this
		/// method to call into a more specific method on a derived visitor class
		/// of the <see cref="MimeKit.MimeVisitor"/> class. However, it should still
		/// support unknown visitors by calling
		/// <see cref="MimeKit.MimeVisitor.VisitMultipartAlternative"/>.
		/// </remarks>
		/// <param name="visitor">The visitor.</param>
		/// <exception cref="System.ArgumentNullException">
		/// <paramref name="visitor"/> is <c>null</c>.
		/// </exception>
		public override void Accept (MimeVisitor visitor)
		{
			if (visitor == null)
				throw new ArgumentNullException (nameof (visitor));

			visitor.VisitMultipartAlternative (this);
		}
Beispiel #11
0
		/// <summary>
		/// Dispatches to the specific visit method for this MIME message.
		/// </summary>
		/// <remarks>
		/// This default implementation for <see cref="MimeKit.MimeMessage"/> nodes
		/// calls <see cref="MimeKit.MimeVisitor.VisitMimeMessage"/>. Override this
		/// method to call into a more specific method on a derived visitor class
		/// of the <see cref="MimeKit.MimeVisitor"/> class. However, it should still
		/// support unknown visitors by calling
		/// <see cref="MimeKit.MimeVisitor.VisitMimeMessage"/>.
		/// </remarks>
		/// <param name="visitor">The visitor.</param>
		/// <exception cref="System.ArgumentNullException">
		/// <paramref name="visitor"/> is <c>null</c>.
		/// </exception>
		public virtual void Accept (MimeVisitor visitor)
		{
			if (visitor == null)
				throw new ArgumentNullException ("visitor");

			visitor.VisitMimeMessage (this);
		}
Beispiel #12
0
		/// <summary>
		/// Dispatches to the specific visit method for this MIME entity.
		/// </summary>
		/// <remarks>
		/// This default implementation for <see cref="MimeKit.MimeEntity"/> nodes
		/// calls <see cref="MimeKit.MimeVisitor.VisitMimeEntity"/>. Override this
		/// method to call into a more specific method on a derived visitor class
		/// of the <see cref="MimeKit.MimeVisitor"/> class. However, it should still
		/// support unknown visitors by calling
		/// <see cref="MimeKit.MimeVisitor.VisitMimeEntity"/>.
		/// </remarks>
		/// <param name="visitor">The visitor.</param>
		/// <exception cref="System.ArgumentNullException">
		/// <paramref name="visitor"/> is <c>null</c>.
		/// </exception>
		public override void Accept (MimeVisitor visitor)
		{
			if (visitor == null)
				throw new ArgumentNullException ("visitor");

			visitor.VisitMessagePart (this);
		}
Beispiel #13
0
		/// <summary>
		/// Dispatches to the specific visit method for this MIME entity.
		/// </summary>
		/// <remarks>
		/// This default implementation for <see cref="MimeKit.MimeEntity"/> nodes
		/// calls <see cref="MimeKit.MimeVisitor.VisitMimeEntity"/>. Override this
		/// method to call into a more specific method on a derived visitor class
		/// of the <see cref="MimeKit.MimeVisitor"/> class. However, it should still
		/// support unknown visitors by calling
		/// <see cref="MimeKit.MimeVisitor.VisitMimeEntity"/>.
		/// </remarks>
		/// <param name="visitor">The visitor.</param>
		/// <exception cref="System.ArgumentNullException">
		/// <paramref name="visitor"/> is <c>null</c>.
		/// </exception>
		public override void Accept (MimeVisitor visitor)
		{
			if (visitor == null)
				throw new ArgumentNullException ("visitor");

			visitor.VisitMultipartRelated (this);
		}
Beispiel #14
0
		/// <summary>
		/// Dispatches to the specific visit method for this MIME entity.
		/// </summary>
		/// <remarks>
		/// This default implementation for <see cref="MimeKit.TextPart"/> nodes
		/// calls <see cref="MimeKit.MimeVisitor.VisitTextPart"/>. Override this
		/// method to call into a more specific method on a derived visitor class
		/// of the <see cref="MimeKit.MimeVisitor"/> class. However, it should still
		/// support unknown visitors by calling
		/// <see cref="MimeKit.MimeVisitor.VisitTextPart"/>.
		/// </remarks>
		/// <param name="visitor">The visitor.</param>
		/// <exception cref="System.ArgumentNullException">
		/// <paramref name="visitor"/> is <c>null</c>.
		/// </exception>
		public override void Accept (MimeVisitor visitor)
		{
			if (visitor == null)
				throw new ArgumentNullException (nameof (visitor));

			visitor.VisitTextPart (this);
		}
		/// <summary>
		/// Dispatches to the specific visit method for this MIME entity.
		/// </summary>
		/// <remarks>
		/// This default implementation for <see cref="MimeKit.MessageDispositionNotification"/> nodes
		/// calls <see cref="MimeKit.MimeVisitor.VisitMessageDispositionNotification"/>. Override this
		/// method to call into a more specific method on a derived visitor class
		/// of the <see cref="MimeKit.MimeVisitor"/> class. However, it should still
		/// support unknown visitors by calling
		/// <see cref="MimeKit.MimeVisitor.VisitMessageDispositionNotification"/>.
		/// </remarks>
		/// <param name="visitor">The visitor.</param>
		/// <exception cref="System.ArgumentNullException">
		/// <paramref name="visitor"/> is <c>null</c>.
		/// </exception>
		public override void Accept (MimeVisitor visitor)
		{
			if (visitor == null)
				throw new ArgumentNullException (nameof (visitor));

			visitor.VisitMessageDispositionNotification (this);
		}
Beispiel #16
0
		/// <summary>
		/// Dispatches to the specific visit method for this MIME entity.
		/// </summary>
		/// <remarks>
		/// This default implementation for <see cref="MimeKit.MimeEntity"/> nodes
		/// calls <see cref="MimeKit.MimeVisitor.VisitMimeEntity"/>. Override this
		/// method to call into a more specific method on a derived visitor class
		/// of the <see cref="MimeKit.MimeVisitor"/> class. However, it should still
		/// support unknown visitors by calling
		/// <see cref="MimeKit.MimeVisitor.VisitMimeEntity"/>.
		/// </remarks>
		/// <param name="visitor">The visitor.</param>
		/// <exception cref="System.ArgumentNullException">
		/// <paramref name="visitor"/> is <c>null</c>.
		/// </exception>
		public virtual void Accept (MimeVisitor visitor)
		{
			if (visitor == null)
				throw new ArgumentNullException (nameof (visitor));

			visitor.VisitMimeEntity (this);
		}
		/// <summary>
		/// Dispatches to the specific visit method for this MIME entity.
		/// </summary>
		/// <remarks>
		/// This default implementation for <see cref="MimeKit.MessageDeliveryStatus"/> nodes
		/// calls <see cref="MimeKit.MimeVisitor.VisitMessageDeliveryStatus"/>. Override this
		/// method to call into a more specific method on a derived visitor class
		/// of the <see cref="MimeKit.MimeVisitor"/> class. However, it should still
		/// support unknown visitors by calling
		/// <see cref="MimeKit.MimeVisitor.VisitMessageDeliveryStatus"/>.
		/// </remarks>
		/// <param name="visitor">The visitor.</param>
		/// <exception cref="System.ArgumentNullException">
		/// <paramref name="visitor"/> is <c>null</c>.
		/// </exception>
		public override void Accept (MimeVisitor visitor)
		{
			if (visitor == null)
				throw new ArgumentNullException (nameof (visitor));

			visitor.VisitMessageDeliveryStatus (this);
		}