Exemplo n.º 1
0
 private bool MACAddressStillExists(string mac)
 {
     lock (LazyPiiPropertyProcessorLockObject)
     {
         return(PrioritizedNetworkInterfaces.Any((NetworkInterfaceCardInformation nic) => string.Equals(mac, LazyPiiPropertyProcessor.Value.ConvertToHashedValue(new TelemetryPiiProperty(nic.MacAddress)))));
     }
 }
Exemplo n.º 2
0
 private bool NetworkInterfaceStillExists(string interfaceDescription)
 {
     return(PrioritizedNetworkInterfaces.Any((NetworkInterfaceCardInformation nic) => string.Equals(interfaceDescription, nic.Description, StringComparison.OrdinalIgnoreCase)));
 }