Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ void DisplayCertificates(IReadOnlyCollection<X509Certificate2> certificates)
Valid From: {cert.NotBefore}
Valid Until: {cert.NotAfter}
Has Private Key: {cert.HasPrivateKey}
Public Key Algorithm: {cert.PublicKey.Key.KeyExchangeAlgorithm}
Public Key Algorithm: {cert.PublicKey.Oid.FriendlyName}
Signature Algorithm: {cert.SignatureAlgorithm.FriendlyName}
Version: {cert.Version}
Friendly Name: {cert.FriendlyName}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ protected override async Task RunAsync(Engine engine, CancellationToken token)
await BuildAndDisplayCredential(engine, credentialBuilder, "48-Bit Corporate 1000 Wiegand Credential", new Wiegand48BitCorporate1000CredentialFormat(companyId: 1, cardId: 2));
await BuildAndDisplayCredential(engine, credentialBuilder, "Corporate 1000 Wiegand Credential", new WiegandCorporate1000CredentialFormat(companyId: 1, cardId: 2));
await BuildAndDisplayCredential(engine, credentialBuilder, "License Plate Credential", new LicensePlateCredentialFormat(licensePlate: "12345"));
await BuildAndDisplayCredential(engine, credentialBuilder, "Keypad Credential", new KeypadCredentialFormat(credentialCode: 12345));
await BuildAndDisplayCredential(engine, credentialBuilder, "Keypad Credential", new KeypadCredentialFormat(credentialCode: "12345"));
await BuildAndDisplayCredential(engine, credentialBuilder, "Raw Card Credential", new RawCardCredentialFormat(rawData: "1234", bitLength: 32));

var fascN75Dict = new Dictionary<string, string>
Expand Down
2 changes: 2 additions & 0 deletions Samples/Platform SDK/EntityCacheSample/EntityCacheSample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ private void PrintEntityCache(Engine engine)

int totalEntities = 0;

#pragma warning disable CS0612 // EntityType.ReportTemplate is obsolete; we filter it explicitly so it is not iterated
foreach (var entityType in Enum.GetValues(typeof(EntityType)).OfType<EntityType>().Except(new[] { EntityType.None, EntityType.ReportTemplate }).OrderBy(type => type.ToString()))
#pragma warning restore CS0612
{
int count = engine.GetEntities(entityType).Count;
totalEntities += count;
Expand Down
2 changes: 1 addition & 1 deletion Samples/Platform SDK/RoleSample/RoleSample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ private void DisplayCertificates(IReadOnlyCollection<X509Certificate2> certifica
Console.WriteLine($" Valid From: {cert.NotBefore:f}");
Console.WriteLine($" Valid Until: {cert.NotAfter:f}");
Console.WriteLine($" Has Private Key: {cert.HasPrivateKey}");
Console.WriteLine($" Public Key Algorithm: {cert.PublicKey.Key.KeyExchangeAlgorithm}");
Console.WriteLine($" Public Key Algorithm: {cert.PublicKey.Oid.FriendlyName}");
Console.WriteLine($" Signature Algorithm: {cert.SignatureAlgorithm.FriendlyName}");
Console.WriteLine($" Version: {cert.Version}");
Console.WriteLine($" Friendly Name: {cert.FriendlyName}");
Expand Down