JasperFx / wolverine

Supercharged .NET server side development!
https://wolverinefx.net
MIT License
1.27k stars 139 forks source link

Before (or equivalent) method on message handler that returns IResult produces an error on code generation #1128

Closed flew2bits closed 2 weeks ago

flew2bits commented 2 weeks ago

If a before handler returns an IResult in a command handler class, during code generation, handler class gets written but then immediately errors out with the message: Lamar was unable to resolve a variable of type Microsoft.AspNetCore.Http.HttpContext as part of the method...

See this gist to reproduce.

This issue occurs in both the latest V2 and V3 versions of Wolverine.