Ejemplo 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);
		}
Ejemplo 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);
        }
Ejemplo n.º 3
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("visitor");
            }

            visitor.VisitMessageDeliveryStatus(this);
        }
Ejemplo 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);
        }
Ejemplo 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);
        }
Ejemplo 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);
        }
Ejemplo 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);
        }
Ejemplo 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);
        }
Ejemplo 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);
		}
Ejemplo 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);
		}
Ejemplo 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);
		}
Ejemplo 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);
		}
Ejemplo 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);
		}
Ejemplo 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);
		}
Ejemplo 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);
		}