1 override of ReadFormAsync
Microsoft.AspNetCore.Http (1)
Internal\DefaultHttpRequest.cs (1)
161public override Task<IFormCollection> ReadFormAsync(CancellationToken cancellationToken)
43 references to ReadFormAsync
Microsoft.AspNetCore.Antiforgery (1)
Internal\DefaultAntiforgeryTokenStore.cs (1)
58form = await httpContext.Request.ReadFormAsync();
Microsoft.AspNetCore.Antiforgery.Test (2)
DefaultAntiforgeryTokenStoreTest.cs (2)
301httpContext.Setup(r => r.Request.ReadFormAsync(It.IsAny<CancellationToken>())).Throws(ioException); 326httpContext.Setup(r => r.Request.ReadFormAsync(It.IsAny<CancellationToken>())).Throws(exception);
Microsoft.AspNetCore.Authentication.OpenIdConnect (2)
OpenIdConnectHandler.cs (2)
123var form = await Request.ReadFormAsync(Context.RequestAborted); 666var form = await Request.ReadFormAsync(Context.RequestAborted);
Microsoft.AspNetCore.Authentication.WsFederation (1)
WsFederationHandler.cs (1)
160var form = await Request.ReadFormAsync(Context.RequestAborted);
Microsoft.AspNetCore.Components.Endpoints (2)
RazorComponentEndpointInvoker.cs (2)
81form: result.HandlerName != null && context.Request.HasFormContentType ? await context.Request.ReadFormAsync() : null); 233await context.Request.ReadFormAsync();
Microsoft.AspNetCore.Components.Server (1)
CircuitDisconnectMiddleware.cs (1)
61var form = await context.Request.ReadFormAsync();
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (1)
MigrationsEndPointMiddleware.cs (1)
97var form = await context.Request.ReadFormAsync();
Microsoft.AspNetCore.Http (1)
RequestFormReaderExtensions.cs (1)
39return request.ReadFormAsync(cancellationToken);
Microsoft.AspNetCore.Http.Abstractions (1)
HttpRequest.cs (1)
134/// To prevent this the method <see cref="ReadFormAsync(CancellationToken)"/> can be used.
Microsoft.AspNetCore.Http.Extensions (1)
RequestDelegateFactory.cs (1)
1527formValue = await httpContext.Request.ReadFormAsync();
Microsoft.AspNetCore.Http.Tests (16)
Features\FormFeatureTests.cs (16)
23var formCollection = await context.Request.ReadFormAsync(); 41var exception = await Assert.ThrowsAsync<InvalidDataException>(() => context.Request.ReadFormAsync()); 61var formCollection = await context.Request.ReadFormAsync(); 103var formCollection = await context.Request.ReadFormAsync(); 220Assert.Same(formCollection, await context.Request.ReadFormAsync()); 255Assert.Same(formCollection, await context.Request.ReadFormAsync()); 283var formCollection = await context.Request.ReadFormAsync(); 340Assert.Same(formCollection, await context.Request.ReadFormAsync()); 368var formCollection = await context.Request.ReadFormAsync(); 416var formCollection = await context.Request.ReadFormAsync(); 468var exception = await Assert.ThrowsAsync<InvalidDataException>(() => context.Request.ReadFormAsync()); 492var exception = await Assert.ThrowsAsync<InvalidDataException>(() => context.Request.ReadFormAsync()); 516var exception = await Assert.ThrowsAsync<InvalidDataException>(() => context.Request.ReadFormAsync()); 540var exception = await Assert.ThrowsAsync<InvalidDataException>(() => context.Request.ReadFormAsync()); 565var formCollection = await context.Request.ReadFormAsync(); 608var exception = await Assert.ThrowsAsync<InvalidDataException>(() => context.Request.ReadFormAsync());
Microsoft.AspNetCore.HttpOverrides (1)
HttpMethodOverrideMiddleware.cs (1)
61var form = await context.Request.ReadFormAsync();
Microsoft.AspNetCore.Mvc.Core (5)
ModelBinding\Binders\FormCollectionModelBinder.cs (1)
43var form = await request.ReadFormAsync();
ModelBinding\Binders\FormFileModelBinder.cs (1)
143var form = await request.ReadFormAsync();
ModelBinding\FormFileValueProviderFactory.cs (1)
37form = await request.ReadFormAsync();
ModelBinding\FormValueProviderFactory.cs (1)
39form = await request.ReadFormAsync();
ModelBinding\JQueryFormValueProviderFactory.cs (1)
39formCollection = await request.ReadFormAsync();
Microsoft.AspNetCore.Mvc.Core.Test (5)
ModelBinding\Binders\FormCollectionModelBinderTest.cs (1)
60httpContext.Setup(h => h.Request.ReadFormAsync(It.IsAny<CancellationToken>()))
ModelBinding\Binders\FormFileModelBinderTest.cs (1)
475httpContext.Setup(h => h.Request.ReadFormAsync(It.IsAny<CancellationToken>()))
ModelBinding\FormFileValueProviderFactoryTest.cs (1)
107context.Setup(c => c.Request.ReadFormAsync(It.IsAny<CancellationToken>())).ThrowsAsync(exception);
ModelBinding\FormValueProviderFactoryTest.cs (1)
95context.Setup(c => c.Request.ReadFormAsync(It.IsAny<CancellationToken>())).ThrowsAsync(exception);
ModelBinding\JQueryFormValueProviderFactoryTest.cs (1)
180context.Setup(c => c.Request.ReadFormAsync(It.IsAny<CancellationToken>())).ThrowsAsync(exception);
Microsoft.AspNetCore.Routing.FunctionalTests (2)
MinimalFormTests.cs (2)
87var form = await context.Request.ReadFormAsync(); 349var form = await context.Request.ReadFormAsync();
MinimalFormSample (1)
Program.cs (1)
56var form = await context.Request.ReadFormAsync();