Skip to content

Commit

Permalink
Update OfflineService.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
aritchie committed Oct 2, 2024
1 parent 8ac4513 commit a70e5fe
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ public Task Clear() => this.DoTransaction(dict =>

SemaphoreSlim semaphore = new(1, 1);
Dictionary<string, OfflineStore> cache = null!;

Task DoTransaction(Func<IDictionary<string, OfflineStore>, bool> action) => Task.Run(async () =>
{
await this.semaphore.WaitAsync();
Expand All @@ -114,7 +113,7 @@ Task DoTransaction(Func<IDictionary<string, OfflineStore>, bool> action) => Task
});


protected virtual string GetRequestKey(object request)
string GetRequestKey(object request)
{
if (request is IRequestKey keyProvider)
return keyProvider.GetKey();
Expand All @@ -126,7 +125,7 @@ protected virtual string GetRequestKey(object request)
}


protected string GetTypeKey(Type type) => $"{type.Namespace}.{type.Name}";
string GetTypeKey(Type type) => $"{type.Namespace}.{type.Name}";
}

record OfflineStore(
Expand Down

0 comments on commit a70e5fe

Please sign in to comment.