Пример #1
0
 public override void Close()
 {
     if (!Closed)
     {
         Closed = true;
         NextReader.Close();
     }
 }
Пример #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());
     }
 }