Skip to content

Fix: ObjectFactory should allow strongly typed method results#4847

Merged
rockfordlhotka merged 3 commits into
mainfrom
bug/4841-object-factory-does-not-support-async-methods-correctly
Mar 20, 2026
Merged

Fix: ObjectFactory should allow strongly typed method results#4847
rockfordlhotka merged 3 commits into
mainfrom
bug/4841-object-factory-does-not-support-async-methods-correctly

Conversation

@StefanOssendorf

Copy link
Copy Markdown
Contributor

fixes #4841

Adds a new dynamically invoked method to cast a Task<T> to Task<object> and caches it with the DynamicMethodHandle to avoid the re-allocation everytime.

@rockfordlhotka rockfordlhotka merged commit 4117b3a into main Mar 20, 2026
2 checks passed
@rockfordlhotka rockfordlhotka deleted the bug/4841-object-factory-does-not-support-async-methods-correctly branch March 20, 2026 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ObjectFactory should allow strongly typed method results

2 participants