Example #1
0
        /// <summary>
        ///     Raises the <see cref="Pop3CommandProcessor.UserAuthenticating" />
        ///     event.
        /// </summary>
        /// <param name="e">
        ///     The <see cref="UserAuthenticatingEventArgs" />
        ///     instance containing the event data.
        /// </param>
        /// <remarks>
        ///     Occurs when the client is attempting to authenticate, but before
        ///     the authentication is completed.
        /// </remarks>
        protected virtual void OnUserAuthenticating(UserAuthenticatingEventArgs e)
        {
            EventHandler <UserAuthenticatingEventArgs> handler = UserAuthenticating;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Example #2
0
 private void HandleUserAuthenticating(object sender, UserAuthenticatingEventArgs e)
 {
     IsAuthenticated = true;
     UserName        = e.UserName;
 }