10 references to TryGetValue
Aspire.Dashboard (4)
Components\Interactions\InteractionsProvider.cs (2)
442if (_openMessageBars.TryGetValue(item.InteractionId, out var openMessageBar)) 493if (_openMessageBars.TryGetValue(item.InteractionId, out var openMessageBar))
Model\TraceHelpers.cs (1)
23if (string.IsNullOrEmpty(item.ParentSpanId) || !trace.Spans.TryGetValue(item.ParentSpanId, out var parentSpan))
Otlp\Model\OtlpSpan.cs (1)
66if (Trace.Spans.TryGetValue(ParentSpanId, out var span))
Aspire.Hosting (3)
InteractionService.cs (3)
281if (!_interactionCollection.TryGetValue(interaction.InteractionId, out var interactionState)) 297if (!_interactionCollection.TryGetValue(interactionId, out interactionState)) 316if (!_interactionCollection.TryGetValue(interactionId, out interactionState))
Client.ExpectedExceptions.IntegrationTests (2)
CallbackDebugBehaviorTests.cs (2)
41if (endpointBehaviors.TryGetValue(typeof(CallbackDebugBehavior), out IEndpointBehavior ieb)) 67if (endpointBehaviors2.TryGetValue(typeof(CallbackDebugBehavior), out IEndpointBehavior ieb2))
System.ObjectModel (1)
System\Collections\ObjectModel\KeyedCollection.cs (1)
63if (TryGetValue(key, out item!))