2 instantiations of BindAsyncFromStaticAbstractInterfaceAndBindAsync
Microsoft.AspNetCore.Http.Extensions.Tests (2)
ParameterBindingMethodCacheTests.cs (2)
1493
return ValueTask.FromResult<BindAsyncFromStaticAbstractInterfaceAndBindAsync?>(
new
(BindAsyncSource.InterfaceStaticAbstractImplicit));
1499
return ValueTask.FromResult<BindAsyncFromStaticAbstractInterfaceAndBindAsync?>(
new
(BindAsyncSource.Reflection));
11 references to BindAsyncFromStaticAbstractInterfaceAndBindAsync
Microsoft.AspNetCore.Http.Extensions.Tests (11)
ParameterBindingMethodCacheTests.cs (11)
332
GetFirstParameter((
BindAsyncFromStaticAbstractInterfaceAndBindAsync
arg) => BindAsyncFromImplicitStaticAbstractInterfaceMethodInsteadOfReflectionMatchedMethod(arg))
369
var parameterInfo = GetFirstParameter((
BindAsyncFromStaticAbstractInterfaceAndBindAsync
arg) => BindAsyncFromImplicitStaticAbstractInterfaceMethodInsteadOfReflectionMatchedMethod(arg));
451
var parameterInfo = GetFirstParameter((
BindAsyncFromStaticAbstractInterfaceAndBindAsync
arg) => BindAsyncFromImplicitStaticAbstractInterfaceMethodInsteadOfReflectionMatchedMethod(arg));
463
Assert.IsType<
BindAsyncFromStaticAbstractInterfaceAndBindAsync
>(result);
464
Assert.Equal(BindAsyncSource.InterfaceStaticAbstractImplicit, ((
BindAsyncFromStaticAbstractInterfaceAndBindAsync
)result).BoundFrom);
749
private static void BindAsyncFromImplicitStaticAbstractInterfaceMethodInsteadOfReflectionMatchedMethod(
BindAsyncFromStaticAbstractInterfaceAndBindAsync
arg) { }
1481
private class BindAsyncFromStaticAbstractInterfaceAndBindAsync : IBindableFromHttpContext<
BindAsyncFromStaticAbstractInterfaceAndBindAsync
>
1491
public static ValueTask<
BindAsyncFromStaticAbstractInterfaceAndBindAsync
?> BindAsync(HttpContext context, ParameterInfo parameter)
1493
return ValueTask.FromResult<
BindAsyncFromStaticAbstractInterfaceAndBindAsync
?>(new(BindAsyncSource.InterfaceStaticAbstractImplicit));
1497
public static ValueTask<
BindAsyncFromStaticAbstractInterfaceAndBindAsync
?> BindAsync(HttpContext context)
1499
return ValueTask.FromResult<
BindAsyncFromStaticAbstractInterfaceAndBindAsync
?>(new(BindAsyncSource.Reflection));