15 references to AddOrUpdate
Microsoft.AspNetCore.SignalR.Client.Core (2)
HubConnection.cs (2)
363var invocationList = _handlers.AddOrUpdate(methodName, _ => new InvocationHandlerList(invocationHandler), 396var 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.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
TestConnectionMultiplexer.cs (1)
272_subscriptions.AddOrUpdate(messageQueue.Channel, _ => new List<(int, Action<RedisChannel, RedisValue>)> { (subscriberId, handler) }, (_, list) =>
Microsoft.Build (1)
Evaluation\ConditionEvaluator.cs (1)
316cachedExpressionTreesForCurrentOptions = s_cachedExpressionTrees.AddOrUpdate(
Microsoft.Build.Engine.UnitTests (1)
InternalEngineHelpers.cs (1)
72ResolvedCalls.AddOrUpdate(sdkReference.Name, k => 1, (k, c) => c + 1);
Microsoft.Build.UnitTests.Shared (3)
ObjectModelHelpers.cs (3)
2198ExistenceChecks.AddOrUpdate(path, p => 1, (p, c) => c + 1); 2203Enumerations.AddOrUpdate(path, p => 1, (p, c) => c + 1); 2322ExistenceChecks.AddOrUpdate(path, p => 1, (p, c) => c + 1);
Microsoft.CodeAnalysis.Analyzers (4)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzer.cs (4)
394localsToDescriptorsMap.AddOrUpdate(local, 1227dict.AddOrUpdate( 1236existingValue.AddOrUpdate( 1243idToAnalyzerMap.AddOrUpdate(
Microsoft.CodeAnalysis.CodeStyle (1)
src\Compilers\Core\Portable\InternalUtilities\ConcurrentDictionaryExtensions.cs (1)
57return dictionary.AddOrUpdate(key, pooledAddValueFactory, pooledUpdateValueFactory);
Microsoft.CodeAnalysis.Workspaces (1)
src\Compilers\Core\Portable\InternalUtilities\ConcurrentDictionaryExtensions.cs (1)
57return dictionary.AddOrUpdate(key, pooledAddValueFactory, pooledUpdateValueFactory);