コード例 #1
0
ファイル: Pop3Client.cs プロジェクト: kenegozi/pop3dotnet
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_networkOperations != null)
         {
             _networkOperations.Close( );
             _networkOperations.Dispose( );
             _networkOperations = null;
         }
     }
 }
コード例 #2
0
        protected virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
#if FULL
                Disconnect();
#else
                DisconnectAsync( ).Wait( );
#endif

                if (_networkOperations != null)
                {
                    _networkOperations.Close();
                    _networkOperations.Dispose();
                    _networkOperations = null;
                }
            }
        }