18 references to TryGet
Aspire.Hosting.RemoteHost (10)
Ats\AtsMarshaller.cs (1)
544
if (!_handles.
TryGet
(handleRef.HandleId, out var handleObj, out _))
Ats\CapabilityDispatcher.cs (6)
198
if (!handles.
TryGet
(handleRef.HandleId, out var contextObj, out _))
245
if (!handles.
TryGet
(handleRef.HandleId, out var contextObj, out var typeId))
323
if (!handles.
TryGet
(handleRef.HandleId, out var contextObj, out _))
804
if (!handles.
TryGet
(handleRef.HandleId, out var handleObject, out _))
832
if (!handles.
TryGet
(handleRef.HandleId, out var handleObject, out _))
1107
if (!handles.
TryGet
(handleRef.HandleId, out var obj, out _))
Ats\PolyglotCapabilityInvocationException.cs (1)
271
if (handleRef is null || !handles.
TryGet
(handleRef.HandleId, out var handleObject, out _))
Ats\ReferenceExpressionRef.cs (2)
173
if (!handles.
TryGet
(conditionHandleRef.HandleId, out var conditionObj, out _))
224
if (!handles.
TryGet
(handleRef.HandleId, out var obj, out _))
Aspire.Hosting.RemoteHost.Tests (8)
AtsMarshallerTests.cs (4)
206
Assert.True(registry.
TryGet
(result["$handle"]!.GetValue<string>(), out var retrieved, out _));
1333
var found = registry.
TryGet
(handleId, out var retrieved, out _);
1351
registry.
TryGet
(handleId, out var retrieved, out _);
1370
registry.
TryGet
(handleId, out var retrieved, out _);
HandleRegistryTests.cs (3)
49
var found = registry.
TryGet
(handleId, out var retrieved, out var typeId);
61
var found = registry.
TryGet
("999", out var obj, out var typeId);
353
var found = registry.
TryGet
(handleId, out var retrieved, out var retrievedTypeId);
RemoteHostServerTests.cs (1)
30
.
TryGet
(handleId, out _, out _));