11 references to FindConstructor
Microsoft.AspNetCore.Http.Extensions (2)
RequestDelegateFactory.cs (1)
1572var (constructor, parameters) = ParameterBindingMethodCache.Instance.FindConstructor(parameterType);
src\Shared\PropertyAsParameterInfo.cs (1)
106var (constructor, constructorParameters) = cache.FindConstructor(parameters[i].ParameterType);
Microsoft.AspNetCore.Http.Extensions.Tests (9)
ParameterBindingMethodCacheTests.cs (9)
475var (constructor, parameters) = cache.FindConstructor(type); 487var (constructor, parameters) = cache.FindConstructor(type); 501var (constructor, parameters) = cache.FindConstructor(type); 513var (constructor, parameters) = cache.FindConstructor(type); 525var (constructor, parameters) = cache.FindConstructor(type); 683var ex = Assert.Throws<InvalidOperationException>(() => cache.FindConstructor(type)); 693var ex = Assert.Throws<InvalidOperationException>(() => cache.FindConstructor(type)); 703var ex = Assert.Throws<InvalidOperationException>(() => cache.FindConstructor(type)); 715var ex = Assert.Throws<InvalidOperationException>(() => cache.FindConstructor(type));