6 references to AsyncLazy
NuGet.Common (3)
AsyncLazy.cs (3)
40
public static AsyncLazy<T> New<T>(Func<Task<T>> asyncValueFactory) => new
AsyncLazy
<T>(asyncValueFactory);
42
public static AsyncLazy<T> New<T>(Func<T> valueFactory) => new
AsyncLazy
<T>(() => Task.Run(valueFactory));
46
public static AsyncLazy<T> New<T>(T innerData) => new
AsyncLazy
<T>(() => Task.FromResult(innerData));
NuGet.Credentials (1)
DefaultCredentialServiceUtility.cs (1)
35
var providers = new
AsyncLazy
<IEnumerable<ICredentialProvider>>(async () => await GetCredentialProvidersAsync(DelegatingLogger));
NuGet.Protocol (2)
RemoteRepositories\HttpFileSystemBasedFindPackageByIdResource.cs (1)
465
(keyId) => new
AsyncLazy
<HashSet<NuGetVersion>?>(
RemoteRepositories\PluginFindPackageByIdResource.cs (1)
388
(keyId) => new
AsyncLazy
<SortedDictionary<NuGetVersion, PackageInfo>>(