protected override DeviceId ComputeDeviceID() { DeviceId dId; if (preferredIdMethod == DeviceIdMethodInternal.cpuId) { String cpuIDValue = OpenUDID.value; if (cpuIDValue != null) { dId = new DeviceId(cpuIDValue, DeviceIdMethodInternal.cpuId); } else { //fallback dId = new DeviceId(DeviceIdHelper.GenerateId(), DeviceIdMethodInternal.multipleWindowsFields); } } else if (preferredIdMethod == DeviceIdMethodInternal.multipleWindowsFields) { dId = new DeviceId(DeviceIdHelper.GenerateId(), DeviceIdMethodInternal.multipleWindowsFields); } else if (preferredIdMethod == DeviceIdMethodInternal.windowsGUID) { dId = CreateGUIDDeviceId(); } else { dId = CreateGUIDDeviceId(); } return(dId); }
public String GenerateDeviceIdMultipleFields() { return(DeviceIdHelper.GenerateId()); }