34 references to Create
Microsoft.AspNetCore.Http.Extensions (2)
RequestDelegateFactoryOptions.cs (2)
39/// The <see cref="EndpointBuilder.RequestDelegate"/> must be <see langword="null"/>. After the call to <see cref="RequestDelegateFactory.Create(Delegate, RequestDelegateFactoryOptions?)"/>, 46/// <see cref="IAcceptsMetadata"/> that <see cref="RequestDelegateFactory.Create(Delegate, RequestDelegateFactoryOptions?)"/> infers automatically
Microsoft.AspNetCore.Http.Extensions.Tests (32)
RequestDelegateFactoryTests.cs (29)
106var factoryResult = RequestDelegateFactory.Create(@delegate, new RequestDelegateFactoryOptions() 242var factoryResult = RequestDelegateFactory.Create((int? id, HttpContext httpContext) => 291RequestDelegateFactory.Create(([FromRoute] int id) => { }, new() { RouteParameterNames = Array.Empty<string>() })); 614var factoryResult = RequestDelegateFactory.Create(StoreNullableIntArray, new() { DisableInferBodyFromParameters = true }); 786var factoryResult = RequestDelegateFactory.Create(StoreNullableIntArray, new() { ThrowOnBadRequest = true, DisableInferBodyFromParameters = true }); 900var factoryResult = RequestDelegateFactory.Create(action, new RequestDelegateFactoryOptions() { ServiceProvider = mock.Object }); 1212var factoryResult = RequestDelegateFactory.Create(action, options: new() { ServiceProvider = services }); 1440Assert.Throws<NotSupportedException>(() => RequestDelegateFactory.Create(TestAction, new() { ServiceProvider = httpContext.RequestServices })); 1595var factoryResult = RequestDelegateFactory.Create(@delegate, new() 1776var factoryResult = RequestDelegateFactory.Create(@delegate, options); 2309var factoryResult = RequestDelegateFactory.Create(@delegate, new RequestDelegateFactoryOptions() 2404var factoryResult = RequestDelegateFactory.Create(@delegate, new RequestDelegateFactoryOptions() 2438var factoryResult = RequestDelegateFactory.Create(HandlerWithTaskAwait, new RequestDelegateFactoryOptions() 2523var factoryResult = RequestDelegateFactory.Create(@delegate, new RequestDelegateFactoryOptions() 2591var result = RequestDelegateFactory.Create(@delegate, options); 2710var result = RequestDelegateFactory.Create(@delegate, options); 2733var result = RequestDelegateFactory.Create(@delegate, options); 2756var result = RequestDelegateFactory.Create(@delegate, options); 2779var result = RequestDelegateFactory.Create(@delegate, options); 2802var result = RequestDelegateFactory.Create(@delegate, options); 2823var result = RequestDelegateFactory.Create(@delegate, options); 2844var result = RequestDelegateFactory.Create(@delegate, options); 2880var result = RequestDelegateFactory.Create(@delegate, options); 3038var result = RequestDelegateFactory.Create(@delegate, options); 3053var result = RequestDelegateFactory.Create(@delegate, new() { ServiceProvider = serviceProvider }); 3068var result = RequestDelegateFactory.Create(@delegate, new() { ServiceProvider = serviceProvider }); 3097var result = RequestDelegateFactory.Create(initialRequestDelegate, options); 3112var result = RequestDelegateFactory.Create(requestDelegate, options); 3123var result = RequestDelegateFactory.Create(@delegate, new RequestDelegateFactoryOptions()
RequestDelegateFactoryTests.EndpointFilters.cs (2)
51var result = RequestDelegateFactory.Create(@delegate, options); 95var result = RequestDelegateFactory.Create(@delegate, options);
RequestDelegateGenerator\RequestDelegateCreationTests.Forms.cs (1)
326var factoryResult = RequestDelegateFactory.Create((HttpContext context, IFormFile file) =>