3 instantiations of ObjectMethodExecutor
Microsoft.AspNetCore.Shared.Tests (3)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (3)
107
return new
ObjectMethodExecutor
(methodInfo, targetTypeInfo, null);
116
return new
ObjectMethodExecutor
(methodInfo, targetTypeInfo, parameterDefaultValues);
129
return new
ObjectMethodExecutor
(methodInfo, targetTypeInfo, isTrimAotCompatible: true);
35 references to ObjectMethodExecutor
Microsoft.AspNetCore.Shared.Tests (35)
ObjectMethodExecutorTest.cs (31)
24
var
executor = GetExecutorForMethod("ValueMethod");
35
var
executor = GetExecutorForMethod("VoidValueMethod");
46
var
executor = GetExecutorForMethod("ValueMethodWithReturnType");
58
var
executor = GetExecutorForMethod("ValueMethodUpdateValue");
71
var
executor = GetExecutorForMethod("ValueMethodWithReturnTypeThrowsException");
83
var
executor = GetExecutorForMethod("ValueMethodAsync");
94
var
executor = GetExecutorForMethod("ValueMethodWithReturnTypeAsync");
106
var
executor = GetExecutorForMethod("ValueMethodUpdateValueAsync");
119
var
executor = GetExecutorForMethod("ValueMethodWithReturnTypeThrowsExceptionAsync");
136
var
executor = GetExecutorForMethod(method);
149
var
executor = GetExecutorForMethod("MethodWithMultipleParameters", suppliedDefaultValues);
158
var
executor = GetExecutorForMethod("MethodWithMultipleParameters");
166
var
executor = GetExecutorForMethod("CustomAwaitableOfReferenceTypeAsync");
182
var
executor = GetExecutorForMethod("CustomAwaitableOfValueTypeAsync");
197
var
executor = GetExecutorForMethod("CustomAwaitableOfReferenceTypeAsync");
214
var
executor = GetExecutorForMethod("CustomAwaitableOfValueTypeAsync");
236
var
executor = GetExecutorForMethod(method);
251
var
executor = GetExecutorForMethod("CustomAwaitableWithICriticalNotifyCompletion");
266
var
executor = GetExecutorForMethod("CustomAwaitableWithoutICriticalNotifyCompletion");
281
var
executor = GetExecutorForMethod("ValueTaskOfValueType");
296
var
executor = GetExecutorForMethod("ValueTaskOfReferenceType");
311
var
executor = GetExecutorForMethod("ValueTaskOfValueType");
327
var
executor = GetExecutorForMethod("ValueTaskOfReferenceType");
342
var
executor = GetExecutorForMethod("FSharpAsyncMethod");
360
var
executor = GetExecutorForMethod("FSharpAsyncFailureMethod");
381
var
executor = GetExecutorForMethod("FSharpAsyncMethod");
396
var
executor = GetExecutorForMethod("FSharpAsyncFailureMethod");
410
private
ObjectMethodExecutor
GetExecutorForMethod(string methodName)
413
return
ObjectMethodExecutor
.Create(method, targetTypeInfo);
416
private
ObjectMethodExecutor
GetExecutorForMethod(string methodName, object[] parameterDefaultValues)
419
return
ObjectMethodExecutor
.Create(method, targetTypeInfo, parameterDefaultValues);
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (3)
105
public static
ObjectMethodExecutor
Create(MethodInfo methodInfo, TypeInfo targetTypeInfo)
112
public static
ObjectMethodExecutor
Create(MethodInfo methodInfo, TypeInfo targetTypeInfo, object?[] parameterDefaultValues)
127
public static
ObjectMethodExecutor
CreateTrimAotCompatible(MethodInfo methodInfo, TypeInfo targetTypeInfo)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutorAwaitable.cs (1)
12
/// Provides a common awaitable structure that <see cref="
ObjectMethodExecutor
.ExecuteAsync"/> can