Route handler filters don't handle all return types #41213
Labels
bug
This issue describes a behavior which is not expected - a bug.
old-area-web-frameworks-do-not-use
*DEPRECATED* This label is deprecated in favor of the area-mvc and area-minimal labels
Milestone
Filters currently wrap the user delegate in a
ValueTask<object?>
before handing off the function to the normal route handling logic. This causes issues with any non object returning methods likevoid
,Task
,Task<T>
, etc. returning methods.Void returning method with no-op filter:
Output:
Task returning method with no-op filter:
Output:
The text was updated successfully, but these errors were encountered: