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 fb72db1

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

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed
 

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,12 +137,12 @@ public static async Task SharedCacheAcrossHierarchicalKeyringsGetItemPutItem(Str
137137
var keyringInput1 = new CreateAwsKmsHierarchicalKeyringInput
138138
{
139139
KeyStore = keystore1,
140-
branchKeyId = branchKeyId,
140+
BranchKeyId = branchKeyId,
141141
TtlSeconds = 600, // This dictates how often we call back to KMS to authorize use of the branch keys
142142
Cache = sharedCache,
143143
PartitionId = partitionId
144144
};
145-
IKeyring hierarchicalKeyring1 = matProv.CreateAwsKmsHierarchicalKeyring(keyringInput1);
145+
IKeyring hierarchicalKeyring1 = materialProviders.CreateAwsKmsHierarchicalKeyring(keyringInput1);
146146

147147
// 4. Configure which attributes are encrypted and/or signed when writing new items.
148148
// For each attribute that may exist on the items we plan to write to our DynamoDbTable,
@@ -209,12 +209,12 @@ public static async Task SharedCacheAcrossHierarchicalKeyringsGetItemPutItem(Str
209209
var keyringInput2 = new CreateAwsKmsHierarchicalKeyringInput
210210
{
211211
KeyStore = keystore2,
212-
branchKeyId = branchKeyId,
212+
BranchKeyId = branchKeyId,
213213
TtlSeconds = 600, // This dictates how often we call back to KMS to authorize use of the branch keys
214214
Cache = sharedCache,
215215
PartitionId = partitionId
216216
};
217-
IKeyring hierarchicalKeyring2 = matProv.CreateAwsKmsHierarchicalKeyring(keyringInput2);
217+
IKeyring hierarchicalKeyring2 = materialProviders.CreateAwsKmsHierarchicalKeyring(keyringInput2);
218218

219219
// 9. Get the DDB Client for Hierarchical Keyring 2.
220220
var ddbClient2 = GetDdbClient(
@@ -284,7 +284,7 @@ Dictionary<String, CryptoAction> attributeActionsOnEncrypt
284284
return ddbClient;
285285
}
286286

287-
public static void PutGetItems(
287+
public static async void PutGetItems(
288288
String ddbTableName,
289289
Client.DynamoDbClient ddbClient
290290
)

0 commit comments

Comments
 (0)
Please sign in to comment.