Это должно работать, но мои строки имеют значение NULL
Код: Выделить всё
/Get the details for this group
EnrollmentGroup group = await provisioningClient.GetEnrollmentGroupAsync(groupId);
logger.LogInformation("Got Enrollment Group: {group}", JsonConvert.SerializeObject(group));
var attestation =(SymmetricKeyAttestation)group.Attestation;
var primaryKey = attestation.PrimaryKey;
var secondaryKey = attestation.SecondaryKey;
if(string.IsNullOrEmpty(primaryKey))
logger.LogWarning("No Primary Key");
if(string.IsNullOrEmpty(secondaryKey))
logger.LogWarning("No Secondary Key");
logger.LogInformation("Got Keys {pri} and {sec}", primaryKey, secondaryKey);
It returns an enrollmeent group that has a symmetric key attestation.
Per the docs, there is a getter for those.
Источник: https://stackoverflow.com/questions/781 ... ly-c-sharp
Мобильная версия