Esempio n. 1
0
 /// <summary>
 /// throw exception if POP3 connection is not in the required state
 /// </summary>
 /// <param name="requiredState"></param>
 protected void EnsureState(Pop3ConnectionStateEnum requiredState)
 {
     if (pop3ConnectionState != requiredState)
     {
         // wrong connection state
         throw new Pop3Exception("GetMailboxStats only accepted during connection state: " + requiredState.ToString() +
                                 "\n The connection to server " + popServer + " is in state " + pop3ConnectionState.ToString());
     }
 }
Esempio n. 2
0
 // Methods
 // -------
 /// <summary>
 /// set POP3 connection state
 /// </summary>
 protected void setPop3ConnectionState(Pop3ConnectionStateEnum State)
 {
     pop3ConnectionState = State;
     CallTrace("   Pop3MailClient Connection State {0} reached", State);
 }
Esempio n. 3
0
 /// <summary>
 /// throw exception if POP3 connection is not in the required state
 /// </summary>
 protected void EnsureState(Pop3ConnectionStateEnum requiredState)
 {
     if (pop3ConnectionState != requiredState)
     {
         // wrong connection state
         throw new Pop3Exception("GetMailboxStats only accepted during connection state: " + requiredState.ToString() +
               "\n The connection to server " + popServer + " is in state " + pop3ConnectionState.ToString());
     }
 }
Esempio n. 4
0
        // Methods
        // -------

        /// <summary>
        /// set POP3 connection state
        /// </summary>
        /// <param name="State"></param>
        protected void setPop3ConnectionState(Pop3ConnectionStateEnum State)
        {
            pop3ConnectionState = State;
            CallTrace("   Pop3MailClient Connection State {0} reached", State);
        }
 /// <summary>
 /// throw exception if POP3 connection is not in the required state
 /// </summary>
 /// <param name="requiredState"></param>
 protected void EnsureState(Pop3ConnectionStateEnum requiredState)
 {
     if (m_pop3ConnectionState != requiredState)
     {
         // wrong connection state
         throw (new Pop3Exception("GetMailboxStats only accepted during connection state: " + requiredState.ToString() + Environment.NewLine+ " The connection to server " + PopServer + " is in state " + Pop3ConnectionState.ToString()));
     }
 }