2 implementations of Get
Microsoft.AspNetCore.AsyncState (1)
AsyncContextHttpContext.cs (1)
24
public T?
Get
()
Microsoft.Extensions.AsyncState (1)
AsyncContext.cs (1)
21
public T?
Get
() => (T?)_state.Get(_token);
5 references to Get
Microsoft.AspNetCore.AsyncState.Tests (3)
AsyncContextHttpContextOfTTests.cs (3)
53
Assert.Null(_context.
Get
());
78
Assert.Throws<InvalidOperationException>(() => _context.
Get
());
100
Assert.Null(_context.
Get
());
Microsoft.Extensions.AsyncState.Tests (2)
AsyncStateTests.cs (2)
248
var value1 = spOne.
Get
();
249
var value2 = spTwo.
Get
();