Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a5303f3

Browse files
committedOct 2, 2024·
fix
1 parent e09ee47 commit a5303f3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎Examples/runtimes/net/src/keyring/SharedCacheAcrossHierarchicalKeyringsExample.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,17 +87,17 @@ public static async Task SharedCacheAcrossHierarchicalKeyringsGetItemPutItem(Str
8787
var logicalKeyStoreName = TestUtils.TEST_LOGICAL_KEYSTORE_NAME;
8888
var partitionId = TestUtils.TEST_PARTITION_ID;
8989
var kmsKeyId = TestUtils.TEST_KEYSTORE_KMS_KEY_ID;
90-
90+
9191
// 1. Create the CryptographicMaterialsCache (CMC) to share across multiple Hierarchical Keyrings
9292
// using the Material Providers Library
9393
// This CMC takes in:
9494
// - CacheType
9595
var materialProviders = new MaterialProviders(new MaterialProvidersConfig());
9696

97-
var cache = new CacheType { Default = new DefaultCache{EntryCapacity = 100} };
97+
var cache = new CacheType { Default = new DefaultCache { EntryCapacity = 100 } };
98+
99+
var cryptographicMaterialsCacheInput = new CreateCryptographicMaterialsCacheInput { Cache = cache };
98100

99-
var cryptographicMaterialsCacheInput = new CreateCryptographicMaterialsCacheInput {Cache = cache};
100-
101101
var sharedCryptographicMaterialsCache = materialProviders.CreateCryptographicMaterialsCache(cryptographicMaterialsCacheInput);
102102

103103
// 2. Create a CacheType object for the sharedCryptographicMaterialsCache

0 commit comments

Comments
 (0)
Please sign in to comment.