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