2 implementations of TryGet
Microsoft.AspNetCore.AsyncState (1)
AsyncContextHttpContext.cs (1)
47
public bool
TryGet
(out T? value)
Microsoft.Extensions.AsyncState (1)
AsyncContext.cs (1)
24
public bool
TryGet
(out T? context)
5 references to TryGet
Microsoft.AspNetCore.AsyncState (1)
AsyncContextHttpContext.cs (1)
53
return _localContext.
TryGet
(out value);
Microsoft.AspNetCore.AsyncState.Tests (4)
AsyncContextHttpContextOfTTests.cs (4)
39
Assert.True(_context.
TryGet
(out Thing? stored));
46
Assert.True(_context.
TryGet
(out Thing? stored));
61
Assert.False(_context.
TryGet
(out Thing? stored));
90
Assert.True(_context.
TryGet
(out Thing? stored));