Alert event arguments.
Some IMailStore implementations, such as MailKit.Net.Imap.ImapClient, will emit Alert events when they receive alert messages from the server.
Inheritance: System.EventArgs
Ejemplo n.º 1
0
        /// <summary>
        /// Raise the alert event.
        /// </summary>
        /// <remarks>
        /// Raises the alert event.
        /// </remarks>
        /// <param name="e">The alert event args.</param>
        protected virtual void OnAlert(AlertEventArgs e)
        {
            var handler = Alert;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Ejemplo n.º 2
0
		/// <summary>
		/// Raise the alert event.
		/// </summary>
		/// <remarks>
		/// Raises the alert event.
		/// </remarks>
		/// <param name="e">The alert event args.</param>
		protected virtual void OnAlert (AlertEventArgs e)
		{
			var handler = Alert;

			if (handler != null)
				handler (this, e);
		}