15 references to FindTryParseMethod
Microsoft.AspNetCore.Http.Extensions (2)
RequestDelegateFactory.cs (1)
1683
var tryParseMethodCall = ParameterBindingMethodCache.Instance.
FindTryParseMethod
(nonNullableParameterType);
src\Shared\ParameterBindingMethodCache.cs (1)
70
return
FindTryParseMethod
(nonNullableParameterType) is not null;
Microsoft.AspNetCore.Http.Extensions.Tests (13)
ParameterBindingMethodCacheTests.cs (13)
29
var methodFound = new ParameterBindingMethodCache().
FindTryParseMethod
(@type);
47
var methodFound = new ParameterBindingMethodCache().
FindTryParseMethod
(typeof(Uri));
69
var methodFound = new ParameterBindingMethodCache().
FindTryParseMethod
(@type);
101
var methodFound = new ParameterBindingMethodCache().
FindTryParseMethod
(@type);
126
var methodFound = new ParameterBindingMethodCache().
FindTryParseMethod
(@type);
171
var methodFound = new ParameterBindingMethodCache().
FindTryParseMethod
(type);
179
var methodFound = new ParameterBindingMethodCache().
FindTryParseMethod
(type);
200
var methodFound = cache.
FindTryParseMethod
(type);
557
() => new ParameterBindingMethodCache().
FindTryParseMethod
(type));
567
Assert.Null(new ParameterBindingMethodCache(throwOnInvalidMethod: false).
FindTryParseMethod
(type));
574
() => new ParameterBindingMethodCache().
FindTryParseMethod
(typeof(TryParseFromMultipleInterfaces)));
581
Assert.Null(new ParameterBindingMethodCache(throwOnInvalidMethod: false).
FindTryParseMethod
(typeof(TryParseFromMultipleInterfaces)));
589
var method = new ParameterBindingMethodCache().
FindTryParseMethod
(type);