Exemplo 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());
     }
 }
Exemplo n.º 2
0
 // Methods
 // -------
 /// <summary>
 /// set POP3 connection state
 /// </summary>
 protected void setPop3ConnectionState(Pop3ConnectionStateEnum State)
 {
     pop3ConnectionState = State;
     CallTrace("   Pop3MailClient Connection State {0} reached", State);
 }
Exemplo 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());
     }
 }
Exemplo 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);
        }
Exemplo n.º 5
0
 /// <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()));
     }
 }