From b27b3382e7774dd72c8fa23d232a334055baddc0 Mon Sep 17 00:00:00 2001 From: Simon Cropp Date: Tue, 10 Dec 2024 06:38:29 +1100 Subject: [PATCH] more accurate StartActivity("SigningKeyStore.StoreKey") --- src/EntityFramework.Storage/Stores/SigningKeyStore.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EntityFramework.Storage/Stores/SigningKeyStore.cs b/src/EntityFramework.Storage/Stores/SigningKeyStore.cs index 87f04828c..cc8e3803c 100644 --- a/src/EntityFramework.Storage/Stores/SigningKeyStore.cs +++ b/src/EntityFramework.Storage/Stores/SigningKeyStore.cs @@ -81,7 +81,7 @@ public async Task> LoadKeysAsync() /// /// /// - public Task StoreKeyAsync(SerializedKey key) + public async Task StoreKeyAsync(SerializedKey key) { using var activity = Tracing.StoreActivitySource.StartActivity("SigningKeyStore.StoreKey"); @@ -97,7 +97,7 @@ public Task StoreKeyAsync(SerializedKey key) IsX509Certificate = key.IsX509Certificate }; Context.Keys.Add(entity); - return Context.SaveChangesAsync(CancellationTokenProvider.CancellationToken); + await Context.SaveChangesAsync(CancellationTokenProvider.CancellationToken); } ///