Network detection using c#

Posted by Rams.Prsk under C# on 7/29/2013 | Points: 10 | Views : 1147 | Status : [Member] | Replies : 0
Hi Team,

I was trying to use a network change detction and was using NetworkAvailabilityChanged and NetworkAddressChanged Events in System.Net.NetworkInformation.NetworkChange class. It looks like the NetworkAvailabilityChanged event does not fire at all when multiple NIC's are enabled in a machine and NetworkAddressChanged Eventis firing multiple times, but i want to perform the operation only once... Looking into the event args and sender object they both are empty and null...

Has anyone have a workaround to fire it only once or handle it once.

Kindly let me if there is any alternate solution how to handle the NetworkChange events using c# when Multiple NIC's are enabled in a machine.





(No response found.)

Login to post response