Esempio n. 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);
		}
Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 5
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.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);
        }
Esempio n. 7
0
        /// <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);
        }
Esempio n. 8
0
        /// <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);
        }
Esempio n. 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);
        }
Esempio n. 10
0
		/// <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);
		}
Esempio n. 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);
		}
Esempio n. 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);
		}
Esempio n. 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);
		}
Esempio n. 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);
		}
Esempio n. 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);
		}
Esempio n. 17
0
		/// <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);
		}