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