Example #1
0
 private void Dispose(bool disposing)
 {
     if (!m_bufferHandle.IsInvalid)
     {
         m_bufferHandle.Dispose();
         m_bufferHandle = null;
     }
     if (!m_receiveHandle.IsInvalid)
     {
         m_receiveHandle.Dispose();
         m_receiveHandle = null;
     }
     if (!m_sendHandle.IsInvalid)
     {
         m_sendHandle.Dispose();
         m_sendHandle = null;
     }
     if (!m_disposed)
     {
         NativeMethods.DhcpCApiCleanup();
         m_disposed = true;
     }
 }
Example #2
0
 private void Dispose(bool disposing)
 {
     if (!m_bufferHandle.IsInvalid)
     {
         m_bufferHandle.Dispose();
         m_bufferHandle = null;
     }
     if (!m_receiveHandle.IsInvalid)
     {
         m_receiveHandle.Dispose();
         m_receiveHandle = null;
     }
     if (!m_sendHandle.IsInvalid)
     {
         m_sendHandle.Dispose();
         m_sendHandle = null;
     }
     if (!m_disposed)
     {
         NativeMethods.DhcpCApiCleanup();
         m_disposed = true;
     }
 }