32 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 (30)
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 }); 758var factoryResult = RequestDelegateFactory.Create(StoreNullableIntArray, new() { ThrowOnBadRequest = true, DisableInferBodyFromParameters = true }); 872var factoryResult = RequestDelegateFactory.Create(action, new RequestDelegateFactoryOptions() { ServiceProvider = mock.Object }); 1184var factoryResult = RequestDelegateFactory.Create(action, options: new() { ServiceProvider = services }); 1412Assert.Throws<NotSupportedException>(() => RequestDelegateFactory.Create(TestAction, new() { ServiceProvider = httpContext.RequestServices })); 1567var factoryResult = RequestDelegateFactory.Create(@delegate, new() 1748var factoryResult = RequestDelegateFactory.Create(@delegate, options); 2281var factoryResult = RequestDelegateFactory.Create(@delegate, new RequestDelegateFactoryOptions() 2376var factoryResult = RequestDelegateFactory.Create(@delegate, new RequestDelegateFactoryOptions() 2410var factoryResult = RequestDelegateFactory.Create(HandlerWithTaskAwait, new RequestDelegateFactoryOptions() 2495var factoryResult = RequestDelegateFactory.Create(@delegate, new RequestDelegateFactoryOptions() 2563var result = RequestDelegateFactory.Create(@delegate, options); 2682var result = RequestDelegateFactory.Create(@delegate, options); 2704var result = RequestDelegateFactory.Create(@delegate, options); 2727var result = RequestDelegateFactory.Create(@delegate, options); 2750var result = RequestDelegateFactory.Create(@delegate, options); 2773var result = RequestDelegateFactory.Create(@delegate, options); 2794var result = RequestDelegateFactory.Create(@delegate, options); 2815var result = RequestDelegateFactory.Create(@delegate, options); 2849var result = RequestDelegateFactory.Create(@delegate, options); 3007var result = RequestDelegateFactory.Create(@delegate, options); 3022var result = RequestDelegateFactory.Create(@delegate, new() { ServiceProvider = serviceProvider }); 3037var result = RequestDelegateFactory.Create(@delegate, new() { ServiceProvider = serviceProvider }); 3066var result = RequestDelegateFactory.Create(initialRequestDelegate, options); 3081var result = RequestDelegateFactory.Create(requestDelegate, options); 3092var result = RequestDelegateFactory.Create(@delegate, new RequestDelegateFactoryOptions()
RequestDelegateGenerator\RequestDelegateCreationTests.Forms.cs (1)
326var factoryResult = RequestDelegateFactory.Create((HttpContext context, IFormFile file) =>