Пример #1
0
 private void PostPersistedSharedProperties(TelemetrySession telemetrySession, CancellationToken cancellationToken)
 {
     if (!ExceptionsEncounteredObtainingHardwareId.Any())
     {
         string b          = telemetrySession.GetPersistedSharedProperty(IdentityPropertyProvider.HardwareIdPropertyName) as string;
         string hardwareId = HardwareId;
         if (HardwareId != HardwareIdNotObtained && !string.Equals(hardwareId, b, StringComparison.Ordinal))
         {
             telemetrySession.SetPersistedSharedProperty(IdentityPropertyProvider.HardwareIdPropertyName, hardwareId);
         }
     }
 }