Skip to content

Commit

Permalink
Ensure metadata cache loads in background
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkMpn committed Dec 30, 2022
1 parent 936d874 commit 84ba003
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ internal class CachedMetadata : IAttributeMetadataCache
public CachedMetadata(IOrganizationService org, PersistentMetadataCache persistentMetadataCache)
{
_defaultCache = new AttributeMetadataCache(org);
_ = persistentMetadataCache.GetMetadataAsync(org, false)
_ = Task.Run(() => persistentMetadataCache.GetMetadataAsync(org, false))
.ContinueWith(loader =>
{
if (loader.IsCanceled || loader.IsFaulted)
Expand Down

0 comments on commit 84ba003

Please sign in to comment.