System.IO.Compression.DeflateStreamAsyncResult.Close C# (CSharp) Méthode

Close() private méthode

private Close ( ) : void
Résultat void
        internal void Close() {
            if (m_Event != null) {
                ((ManualResetEvent)m_Event).Close();
            }            
        }

Usage Example

Exemple #1
0
 private void AwaitAsyncResultCompletion(DeflateStreamAsyncResult asyncResult)
 {
     try {
         if (!asyncResult.IsCompleted)
         {
             asyncResult.AsyncWaitHandle.WaitOne();
         }
     } finally {
         Interlocked.Decrement(ref asyncOperations);
         asyncResult.Close();  // this will just close the wait handle
     }
 }
All Usage Examples Of System.IO.Compression.DeflateStreamAsyncResult::Close