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

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

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

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

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

			visitor.VisitBodyPartBasic (this);
		}
Example #6
0
 /// <summary>
 /// Dispatches to the specific visit method for this MIME body part.
 /// </summary>
 /// <remarks>
 /// This default implementation for <see cref="MailKit.BodyPart"/> nodes
 /// calls <see cref="MailKit.BodyPartVisitor.VisitBodyPart"/>. Override this
 /// method to call into a more specific method on a derived visitor class
 /// of the <see cref="MailKit.BodyPartVisitor"/> class. However, it should still
 /// support unknown visitors by calling
 /// <see cref="MailKit.BodyPartVisitor.VisitBodyPart"/>.
 /// </remarks>
 /// <param name="visitor">The visitor.</param>
 /// <exception cref="System.ArgumentNullException">
 /// <paramref name="visitor"/> is <c>null</c>.
 /// </exception>
 public abstract void Accept(BodyPartVisitor visitor);
Example #7
0
		/// <summary>
		/// Dispatches to the specific visit method for this MIME body part.
		/// </summary>
		/// <remarks>
		/// This default implementation for <see cref="MailKit.BodyPart"/> nodes
		/// calls <see cref="MailKit.BodyPartVisitor.VisitBodyPart"/>. Override this
		/// method to call into a more specific method on a derived visitor class
		/// of the <see cref="MailKit.BodyPartVisitor"/> class. However, it should still
		/// support unknown visitors by calling
		/// <see cref="MailKit.BodyPartVisitor.VisitBodyPart"/>.
		/// </remarks>
		/// <param name="visitor">The visitor.</param>
		/// <exception cref="System.ArgumentNullException">
		/// <paramref name="visitor"/> is <c>null</c>.
		/// </exception>
		public override void Accept (BodyPartVisitor visitor)
		{
			if (visitor == null)
				throw new ArgumentNullException (nameof (visitor));

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

			visitor.VisitBodyPart (this);
		}