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