1 type derived from RemoteMatch
NuGet.DependencyResolver.Core (1)
Remote\LocalMatch.cs (1)
13
public class LocalMatch :
RemoteMatch
2 instantiations of RemoteMatch
NuGet.DependencyResolver.Core (2)
ResolverUtility.cs (2)
541
return new
RemoteMatch
570
return new
RemoteMatch
()
61 references to RemoteMatch
NuGet.Commands (22)
RestoreCommand\DependencyGraphResolver.cs (1)
738
HashSet<
RemoteMatch
> packagesToInstall = await context.GetUnresolvedRemoteMatchesAsync();
RestoreCommand\DownloadDependencyResolutionResult.cs (6)
24
public IList<Tuple<LibraryRange,
RemoteMatch
>> Dependencies { get; }
29
public ISet<
RemoteMatch
> Install { get; }
37
private DownloadDependencyResolutionResult(NuGetFramework framework, IList<Tuple<LibraryRange,
RemoteMatch
>> dependencies, ISet<
RemoteMatch
> install, ISet<LibraryRange> unresolved)
45
public static DownloadDependencyResolutionResult Create(NuGetFramework framework, IList<Tuple<LibraryRange,
RemoteMatch
>> dependencies, IList<IRemoteDependencyProvider> remoteDependencyProviders)
47
var install = new HashSet<
RemoteMatch
>();
RestoreCommand\IRestoreTargetGraph.cs (1)
54
ISet<
RemoteMatch
> Install { get; }
RestoreCommand\OriginalCaseGlobalPackageFolder.cs (3)
78
foreach (
var
remoteMatch in packages)
167
private static PackageIdentity GetPackageIdentity(
RemoteMatch
remoteMatch)
174
private LocalPackageSourceInfo GetLocalPackageSourceInfo(
RemoteMatch
remoteMatch)
RestoreCommand\ProjectRestoreCommand.cs (8)
240
return DownloadDependencyResolutionResult.Create(targetFrameworkInformation.FrameworkName, Array.Empty<Tuple<LibraryRange,
RemoteMatch
>>(), context.RemoteLibraryProviders);
243
List<Task<Tuple<LibraryRange,
RemoteMatch
>>> packageDownloadTasks = new(capacity: targetFrameworkInformation.DownloadDependencies.Length);
250
Tuple<LibraryRange,
RemoteMatch
>[] packageDownloadMatches = await Task.WhenAll(packageDownloadTasks);
369
foreach (
var
match in packagesToInstall)
376
var bag = new ConcurrentBag<
RemoteMatch
>(packagesToInstall);
380
RemoteMatch
match;
396
private async Task<bool> InstallPackageAsync(
RemoteMatch
installItem, NuGetv3LocalRepository userPackageFolder, PackageExtractionContext packageExtractionContext, CancellationToken token)
495
var
match = node.Data?.Match;
RestoreCommand\RestoreTargetGraph.cs (3)
49
public ISet<
RemoteMatch
> Install { get; }
72
ISet<
RemoteMatch
> install,
120
var install = new HashSet<
RemoteMatch
>();
NuGet.DependencyResolver.Core (39)
Remote\LocalMatch.cs (1)
11
/// Extends <see cref="
RemoteMatch
"/> to add a reference to the full Library.
Remote\RemoteMatch.cs (3)
11
public class RemoteMatch : IEquatable<
RemoteMatch
>
19
return Equals(obj as
RemoteMatch
);
22
public bool Equals(
RemoteMatch
other)
Remote\RemoteResolveResult.cs (1)
15
public
RemoteMatch
Match { get; set; }
Remote\RemoteWalkContext.cs (5)
27
ResolvePackageLibraryMatchCache = new TaskResultCache<LibraryRange, Tuple<LibraryRange,
RemoteMatch
>>();
49
internal TaskResultCache<LibraryRange, Tuple<LibraryRange,
RemoteMatch
>> ResolvePackageLibraryMatchCache { get; }
101
/// <returns>A <see cref="HashSet{T}" /> containing the <see cref="
RemoteMatch
" /> objects representing unresolved packages.</returns>
102
public async Task<HashSet<
RemoteMatch
>> GetUnresolvedRemoteMatchesAsync()
104
HashSet<
RemoteMatch
> packagesToInstall = new();
ResolverUtility.cs (29)
64
RemoteMatch
? match = await FindLibraryMatchAsync(
112
RemoteMatch
match,
156
internal static Task<
RemoteMatch
?> FindLibraryMatchAsync(
182
internal static async Task<
RemoteMatch
?> FindLibraryMatchAsync(
204
var
projectMatch = await FindProjectMatchAsync(libraryRange, framework, targetAlias, projectProviders, cancellationToken);
239
var
localMatch = await FindLibraryByVersionAsync(library, framework, localProviders, cacheContext, logger, cancellationToken);
248
var
remoteMatch = await FindLibraryByVersionAsync(library, framework, remoteProviders, cacheContext, logger, cancellationToken);
273
public static Task<Tuple<LibraryRange,
RemoteMatch
>> FindPackageLibraryMatchCachedAsync(
284
private static async Task<Tuple<LibraryRange,
RemoteMatch
>> ResolvePackageLibraryMatchAsync(LibraryRange libraryRange, RemoteWalkContext remoteWalkContext, CancellationToken cancellationToken)
292
var
match = await FindPackageLibraryMatchAsync(libraryRange, NuGetFramework.AnyFramework, remoteDependencyProviders, remoteWalkContext.LocalLibraryProviders, remoteWalkContext.CacheContext, remoteWalkContext.Logger, cancellationToken);
298
return new Tuple<LibraryRange,
RemoteMatch
>(libraryRange, match);
301
private static async Task<
RemoteMatch
?> FindPackageLibraryMatchAsync(LibraryRange libraryRange, NuGetFramework framework, IEnumerable<IRemoteDependencyProvider> remoteProviders, IEnumerable<IRemoteDependencyProvider> localProviders, SourceCacheContext cacheContext, ILogger logger, CancellationToken cancellationToken)
312
var
remoteMatch = await FindLibraryByVersionAsync(libraryRange, framework, remoteProviders, cacheContext, logger, cancellationToken);
317
var
localMatch = await FindLibraryByVersionAsync(remoteMatch.Library, framework, localProviders, cacheContext, logger, cancellationToken);
335
var
localMatch = await FindLibraryByVersionAsync(libraryRange, framework, localProviders, cacheContext, logger, cancellationToken);
346
var
remoteMatch = await FindLibraryByVersionAsync(libraryRange, framework, remoteProviders, cacheContext, logger, cancellationToken);
379
public static Task<
RemoteMatch
?> FindProjectMatchAsync(
388
internal static Task<
RemoteMatch
?> FindProjectMatchAsync(
401
RemoteMatch
? result = null;
431
public static async Task<
RemoteMatch
?> FindLibraryByVersionAsync(
458
var
nonHttpMatch = await FindLibraryFromSourcesAsync(
473
var
httpMatch = await FindLibraryFromSourcesAsync(
493
private static async Task<
RemoteMatch
?> FindLibraryFromSourcesAsync(
501
var tasks = new List<Task<
RemoteMatch
?>>();
508
RemoteMatch
? bestMatch = null;
514
var
match = await task;
535
static async Task<
RemoteMatch
?> FindLibraryFromProviderAsync(IRemoteDependencyProvider provider, LibraryRange libraryRange,
556
var
match = CreateUnresolvedMatch(libraryRange);
568
private static
RemoteMatch
CreateUnresolvedMatch(LibraryRange libraryRange)