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