20 instantiations of FormFeature
Microsoft.AspNetCore.Http (2)
Internal\DefaultHttpRequest.cs (1)
18private static readonly Func<DefaultHttpRequest, IFormFeature> _newFormFeature = r => new FormFeature(r, r._context.FormOptions ?? FormOptions.Default, r._context.GetEndpoint());
RequestFormReaderExtensions.cs (1)
37features.Set<IFormFeature>(new FormFeature(request, options));
Microsoft.AspNetCore.Http.Tests (15)
Features\FormFeatureTests.cs (15)
20var formFeature = new FormFeature(context.Request, new FormOptions()); 58IFormFeature formFeature = new FormFeature(context.Request, new FormOptions() { BufferBody = bufferRequest }); 100IFormFeature formFeature = new FormFeature(context.Request, new FormOptions() { BufferBody = bufferRequest }); 208IFormFeature formFeature = new FormFeature(context.Request, new FormOptions() { BufferBody = bufferRequest }); 243IFormFeature formFeature = new FormFeature(context.Request, new FormOptions() { BufferBody = bufferRequest }); 280IFormFeature formFeature = new FormFeature(context.Request, new FormOptions() { BufferBody = bufferRequest }); 328IFormFeature formFeature = new FormFeature(context.Request, new FormOptions() { BufferBody = bufferRequest }); 365IFormFeature formFeature = new FormFeature(context.Request, new FormOptions() { BufferBody = bufferRequest }); 413IFormFeature formFeature = new FormFeature(context.Request, new FormOptions() { BufferBody = bufferRequest }); 465IFormFeature formFeature = new FormFeature(context.Request, new FormOptions() { BufferBody = bufferRequest, ValueCountLimit = 2 }); 489IFormFeature formFeature = new FormFeature(context.Request, new FormOptions() { BufferBody = bufferRequest, ValueCountLimit = 2 }); 513IFormFeature formFeature = new FormFeature(context.Request, new FormOptions() { BufferBody = bufferRequest, ValueCountLimit = 2 }); 537IFormFeature formFeature = new FormFeature(context.Request, new FormOptions() { BufferBody = bufferRequest, ValueCountLimit = 2 }); 562IFormFeature formFeature = new FormFeature(context.Request, new FormOptions() { BufferBody = bufferRequest }); 605IFormFeature formFeature = new FormFeature(context.Request, new FormOptions());
Microsoft.AspNetCore.Mvc.Core (1)
Filters\RequestFormLimitsFilter.cs (1)
40features.Set<IFormFeature>(new FormFeature(context.HttpContext.Request, FormOptions));
Microsoft.AspNetCore.Mvc.Core.Test (2)
Filters\RequestFormLimitsFilterTest.cs (2)
43var oldFormFeature = new FormFeature(authorizationFilterContext.HttpContext.Request); 117new FormFeature(authorizationFilterContext.HttpContext.Request));
10 references to FormFeature
Microsoft.AspNetCore.Http (3)
Features\FormFeature.cs (3)
27/// Initializes a new instance of <see cref="FormFeature"/>. 40/// Initializes a new instance of <see cref="FormFeature"/>. 49/// Initializes a new instance of <see cref="FormFeature"/>.
Microsoft.AspNetCore.Http.Tests (1)
Features\FormFeatureTests.cs (1)
20var formFeature = new FormFeature(context.Request, new FormOptions());
Microsoft.AspNetCore.Mvc.Core.Test (2)
Filters\RequestFormLimitsFilterTest.cs (2)
32Assert.IsType<FormFeature>(formFeature); 43var oldFormFeature = new FormFeature(authorizationFilterContext.HttpContext.Request);
Microsoft.AspNetCore.Routing.Tests (4)
EndpointRoutingMiddlewareFormOptionsTest.cs (4)
47var formOptions = Assert.IsType<FormFeature>(formFeature).FormOptions; 81var formOptions = Assert.IsType<FormFeature>(formFeature).FormOptions; 119var formOptions = Assert.IsType<FormFeature>(formFeature).FormOptions; 155var formOptions = Assert.IsType<FormFeature>(formFeature).FormOptions;