25 instantiations of FormOptions
Microsoft.AspNetCore.Http (2)
Features\FormOptions.cs (1)
13internal static readonly FormOptions Default = new FormOptions();
Internal\MutableFormOptionsMetadata.cs (1)
9internal FormOptions ResolveFormOptions(FormOptions baseFormOptions) => new FormOptions
Microsoft.AspNetCore.Http.Tests (16)
Features\FormFeatureTests.cs (16)
20var formFeature = new FormFeature(context.Request, new FormOptions()); 33context.FormOptions = 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)
RequestFormLimitsAttribute.cs (1)
40internal FormOptions FormOptions { get; } = new FormOptions();
Microsoft.AspNetCore.Mvc.Core.Test (6)
Filters\RequestFormLimitsFilterTest.cs (5)
21requestFormLimitsFilter.FormOptions = new FormOptions(); 40requestFormLimitsFilter.FormOptions = new FormOptions(); 63requestFormLimitsFilter.FormOptions = new FormOptions(); 87requestFormLimitsFilter.FormOptions = new FormOptions(); 112requestFormLimitsFilter.FormOptions = new FormOptions();
RequestFormLimitsAttributeTest.cs (1)
34var formOptions = new FormOptions();
30 references to FormOptions
Microsoft.AspNetCore.Hosting (2)
Http\DefaultHttpContextFactory.cs (2)
20private readonly FormOptions _formOptions; 33_formOptions = serviceProvider.GetRequiredService<IOptions<FormOptions>>().Value;
Microsoft.AspNetCore.Http (14)
DefaultHttpContext.cs (1)
107public FormOptions FormOptions { get; set; } = default!;
Features\FormFeature.cs (8)
21private FormOptions _options; 36_options = FormOptions.Default; 44: this(request, FormOptions.Default) 53public FormFeature(HttpRequest request, FormOptions options) 58internal FormFeature(HttpRequest request, FormOptions options, Endpoint? endpoint) 69internal FormOptions FormOptions => _options; 392private static FormOptions GetFormOptionsFromMetadata(FormOptions baseFormOptions, Endpoint endpoint)
Features\FormOptions.cs (1)
13internal static readonly FormOptions Default = new FormOptions();
Internal\DefaultHttpRequest.cs (1)
18private static readonly Func<DefaultHttpRequest, IFormFeature> _newFormFeature = r => new FormFeature(r, r._context.FormOptions ?? FormOptions.Default, r._context.GetEndpoint());
Internal\MutableFormOptionsMetadata.cs (2)
9internal FormOptions ResolveFormOptions(FormOptions baseFormOptions) => new FormOptions
RequestFormReaderExtensions.cs (1)
21public static Task<IFormCollection> ReadFormAsync(this HttpRequest request, FormOptions options,
Microsoft.AspNetCore.Mvc.Core (2)
Filters\RequestFormLimitsFilter.cs (1)
21public FormOptions FormOptions { get; set; } = default!;
RequestFormLimitsAttribute.cs (1)
40internal FormOptions FormOptions { get; } = new FormOptions();
Microsoft.AspNetCore.Mvc.Core.Test (3)
RequestFormLimitsAttributeTest.cs (3)
15var formOptionsProperties = GetProperties(typeof(FormOptions)); 32var formOptionsProperties = GetProperties(typeof(FormOptions)); 34var formOptions = new FormOptions();
Microsoft.AspNetCore.Routing.Tests (9)
EndpointRoutingMiddlewareFormOptionsTest.cs (9)
47var formOptions = Assert.IsType<FormFeature>(formFeature).FormOptions; 52Assert.Equal(FormOptions.DefaultMemoryBufferThreshold, formOptions.MemoryBufferThreshold); 81var formOptions = Assert.IsType<FormFeature>(formFeature).FormOptions; 87Assert.Equal(FormOptions.DefaultMemoryBufferThreshold, formOptions.MemoryBufferThreshold); 96var serviceProvider = new ServiceCollection().Configure<FormOptions>(options => 119var formOptions = Assert.IsType<FormFeature>(formFeature).FormOptions; 125Assert.Equal(FormOptions.DefaultMemoryBufferThreshold, formOptions.MemoryBufferThreshold); 155var formOptions = Assert.IsType<FormFeature>(formFeature).FormOptions; 160Assert.Equal(FormOptions.DefaultMemoryBufferThreshold, formOptions.MemoryBufferThreshold);