Exemplo n.º 1
0
 public override void Close()
 {
     if (!Closed)
     {
         Closed = true;
         NextReader.Close();
     }
 }
Exemplo n.º 2
0
 public override void Close()
 {
     if (!Closed)
     {
         Closed = true;
         if (_imapClient != null)
         {
             try
             {
                 _imapClient.Logout();
             }
             catch (Exception ex)
             {
                 Logger.Error("Failed to logout : " + ex.Message, ex);
             }
         }
         ThreadPool.QueueUserWorkItem(state => NextReader.Close());
     }
 }