9 references to ReadFromJsonAsync
Microsoft.AspNetCore.Http.Extensions.Tests (8)
HttpRequestJsonExtensionsTests.cs (7)
42
var ex = await Assert.ThrowsAsync<InvalidOperationException>(async () => await context.Request.
ReadFromJsonAsync
<int>());
57
var ex = await Assert.ThrowsAsync<JsonException>(async () => await context.Request.
ReadFromJsonAsync
<int>());
73
var result = await context.Request.
ReadFromJsonAsync
<int>();
109
var result = await context.Request.
ReadFromJsonAsync
<List<int>>();
127
var result = await context.Request.
ReadFromJsonAsync
<Dictionary<string, string>>();
144
var readTask = context.Request.
ReadFromJsonAsync
<List<int>>(cts.Token);
161
var ex = await Assert.ThrowsAsync<InvalidOperationException>(async () => await context.Request.
ReadFromJsonAsync
<object>());
RequestDelegateGenerator\SharedTypes.cs (1)
207
var body = await context.Request.
ReadFromJsonAsync
<CustomTodo>();
Microsoft.AspNetCore.Http.Microbenchmarks (1)
src\Http\Http.Extensions\test\RequestDelegateGenerator\SharedTypes.cs (1)
207
var body = await context.Request.
ReadFromJsonAsync
<CustomTodo>();