Пример #1
0
        /// <summary>
        /// Raises event AuthUser.
        /// </summary>
        /// <param name="session">Reference to current smtp session.</param>
        /// <param name="userName">User name.</param>
        /// <param name="passwordData">Password compare data,it depends of authentication type.</param>
        /// <param name="data">For md5 eg. md5 calculation hash.It depends of authentication type.</param>
        /// <param name="authType">Authentication type.</param>
        /// <returns></returns>
        internal AuthUser_EventArgs OnAuthUser(SMTP_Session session, string userName, string passwordData, string data, AuthType authType)
        {
            AuthUser_EventArgs oArgs = new AuthUser_EventArgs(session, userName, passwordData, data, authType);

            if (this.AuthUser != null)
            {
                this.AuthUser(this, oArgs);
            }

            return(oArgs);
        }
Пример #2
0
		/// <summary>
		/// Raises event AuthUser.
		/// </summary>
		/// <param name="session">Reference to current smtp session.</param>
		/// <param name="userName">User name.</param>
		/// <param name="passwordData">Password compare data,it depends of authentication type.</param>
		/// <param name="data">For md5 eg. md5 calculation hash.It depends of authentication type.</param>
		/// <param name="authType">Authentication type.</param>
		/// <returns></returns>
		internal AuthUser_EventArgs OnAuthUser(SMTP_Session session,string userName,string passwordData,string data,AuthType authType)
		{
			AuthUser_EventArgs oArgs = new AuthUser_EventArgs(session,userName,passwordData,data,authType);
			if(this.AuthUser != null){
				this.AuthUser(this,oArgs);
			}

			return oArgs;
		}