2 writes to AsyncResultType
Microsoft.AspNetCore.Shared.Tests (2)
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (2)
48
AsyncResultType
= isAwaitable ? coercedAwaitableInfo.AwaitableInfo.ResultType : null;
71
AsyncResultType
= isAwaitable ? resultType : null;
16 references to AsyncResultType
Microsoft.AspNetCore.Shared.Tests (16)
ObjectMethodExecutorTest.cs (15)
173
Assert.Same(typeof(TestObject), executor.
AsyncResultType
);
189
Assert.Same(typeof(int), executor.
AsyncResultType
);
204
Assert.Same(typeof(TestObject), executor.
AsyncResultType
);
221
Assert.Same(typeof(int), executor.
AsyncResultType
);
243
Assert.Same(typeof(void), executor.
AsyncResultType
);
258
Assert.Same(typeof(string), executor.
AsyncResultType
);
273
Assert.Same(typeof(string), executor.
AsyncResultType
);
288
Assert.Same(typeof(int), executor.
AsyncResultType
);
303
Assert.Same(typeof(string), executor.
AsyncResultType
);
318
Assert.Same(typeof(int), executor.
AsyncResultType
);
334
Assert.Same(typeof(string), executor.
AsyncResultType
);
352
Assert.Same(typeof(string), executor.
AsyncResultType
);
370
Assert.Same(typeof(string), executor.
AsyncResultType
);
388
Assert.Same(typeof(string), executor.
AsyncResultType
);
403
Assert.Same(typeof(string), executor.
AsyncResultType
);
src\Shared\ObjectMethodExecutor\ObjectMethodExecutor.cs (1)
80
_executorAsync = GetExecutorAsyncTrimAotCompatible(methodInfo,
AsyncResultType
!);