2 writes to pingEvent
System (2)
net\System\Net\NetworkInformation\ping.cs (2)
155
pingEvent
= null;
663
pingEvent
= new ManualResetEvent (false);
7 references to pingEvent
System (7)
net\System\Net\NetworkInformation\ping.cs (7)
153
if (
pingEvent
!= null) {
154
pingEvent
.Close();
662
if (
pingEvent
== null)
665
pingEvent
.Reset();
667
registeredWait = ThreadPool.RegisterWaitForSingleObject (
pingEvent
, new WaitOrTimerCallback (PingCallback), this, -1, true);
675
error = (int)UnsafeNetInfoNativeMethods.IcmpSendEcho2 (handlePingV4,
pingEvent
.SafeWaitHandle, IntPtr.Zero, IntPtr.Zero, (uint)address.m_Address, requestBuffer, (ushort)buffer.Length, ref ipOptions, replyBuffer, MaxUdpPacket, (uint)timeout);
686
error = (int)UnsafeNetInfoNativeMethods.Icmp6SendEcho2 (handlePingV6,
pingEvent
.SafeWaitHandle, IntPtr.Zero, IntPtr.Zero, sourceAddr, remoteAddr.m_Buffer, requestBuffer, (ushort)buffer.Length, ref ipOptions, replyBuffer, MaxUdpPacket, (uint)timeout);