25 references to AddOrUpdate
dotnet (1)
NugetPackageDownloader\NuGetPackageDownloader.cs (1)
1050_sourceRepositories.AddOrUpdate(source, _ => value, (_, _) => value);
dotnet-aot (1)
src\sdk\src\Cli\dotnet\NugetPackageDownloader\NuGetPackageDownloader.cs (1)
1050_sourceRepositories.AddOrUpdate(source, _ => value, (_, _) => value);
Microsoft.AspNetCore.SignalR.Client.Core (2)
HubConnection.cs (2)
393var invocationList = _handlers.AddOrUpdate(methodName, _ => new InvocationHandlerList(invocationHandler), 426var invocationList = _handlers.AddOrUpdate(methodName, _ => new InvocationHandlerList(invocationHandler),
Microsoft.AspNetCore.SignalR.Core (1)
Internal\HubGroupList.cs (1)
59_groups.AddOrUpdate(groupName, _ => AddConnectionToGroup(connection, new GroupConnectionList()),
Microsoft.Build (1)
Evaluation\ConditionEvaluator.cs (1)
323cachedExpressionTreesForCurrentOptions = s_cachedExpressionTrees.AddOrUpdate(
Microsoft.Build.NuGetSdkResolver (1)
GlobalJsonReader.cs (1)
82(DateTime _, Lazy<Dictionary<string, string>> Lazy) cacheEntry = FileCache.AddOrUpdate(
Microsoft.CodeAnalysis.Analyzers (5)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer.cs (4)
397localsToDescriptorsMap.AddOrUpdate(local, 1229dict.AddOrUpdate( 1238existingValue.AddOrUpdate( 1245idToAnalyzerMap.AddOrUpdate(
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ConcurrentDictionaryExtensions.cs (1)
57return dictionary.AddOrUpdate(key, pooledAddValueFactory, pooledUpdateValueFactory);
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ConcurrentDictionaryExtensions.cs (1)
57return dictionary.AddOrUpdate(key, pooledAddValueFactory, pooledUpdateValueFactory);
Microsoft.CodeAnalysis.CodeStyle (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ConcurrentDictionaryExtensions.cs (1)
57return dictionary.AddOrUpdate(key, pooledAddValueFactory, pooledUpdateValueFactory);
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ConcurrentDictionaryExtensions.cs (1)
57return dictionary.AddOrUpdate(key, pooledAddValueFactory, pooledUpdateValueFactory);
Microsoft.TestPlatform.CrossPlatEngine (1)
Client\Parallel\DiscoveryDataAggregator.cs (1)
194_sourcesWithDiscoveryStatus.AddOrUpdate(source,
NuGet.Configuration (1)
Proxy\ProxyCache.cs (1)
159_cachedCredentials.AddOrUpdate(
NuGet.Protocol (6)
HttpSource\TokenStore.cs (1)
59_tokenCache.AddOrUpdate(
LocalRepositories\LocalV2FindPackageByIdResource.cs (1)
412results = _packageInfoCache.AddOrUpdate(id, findPackages, (k, v) => findPackages(k));
LocalRepositories\LocalV3FindPackageByIdResource.cs (1)
491results = _cache.AddOrUpdate(id, findPackages, (k, v) => findPackages(k));
Plugins\RequestHandlers.cs (1)
50_handlers.AddOrUpdate(method, m => addHandlerFunc(), (m, r) => updateHandlerFunc(r));
RemoteRepositories\HttpFileSystemBasedFindPackageByIdResource.cs (1)
475result = _packageVersionsCache.AddOrUpdate(id, findPackages, (k, v) => findPackages(id));
RemoteRepositories\PluginFindPackageByIdResource.cs (1)
394result = _packageInfoCache.AddOrUpdate(id, findPackages, (k, v) => findPackages(id));
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\ConcurrentDictionaryExtensions.cs (1)
57return dictionary.AddOrUpdate(key, pooledAddValueFactory, pooledUpdateValueFactory);
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.Linux.cs (1)
291Watch watch = _wdToWatch.AddOrUpdate(wd, (int watchDescriptor) => new Watch(watchDescriptor), (int watchDescriptor, Watch current) => current);