public string[] GetMacAddresses()
        {
            var networkInterfaces = NetworkInterface.GetAllNetworkInterfaces();

            return(networkInterfaces.Select(
                       networkInterface => macAddressConverter.MAC_PhysicalAddressToString(
                           networkInterface.GetPhysicalAddress())).ToArray());
        }
Exemple #2
0
 public void WakeOnLAN(System.Net.NetworkInformation.PhysicalAddress mac)
 {
     WakeOnLAN(macAddressConverter.MAC_PhysicalAddressToString(mac), 7);
 }