Esempio n. 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);
		}
Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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);
        }
Esempio n. 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);
		}
Esempio n. 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);
Esempio n. 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);
		}
Esempio n. 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);
		}