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