AspNet.Mvc.TypedRouting icon indicating copy to clipboard operation
AspNet.Mvc.TypedRouting copied to clipboard

FromServices Parameters

Open ralbertazzi opened this issue 7 years ago • 1 comments

Is there a way to avoid handling the [FromServices] parameters injected into the Action method?

ralbertazzi avatar Apr 08 '17 12:04 ralbertazzi

@riccardoalbertazzi You can try using With.No<YourServiceHere>(). Is that convenient enough for you? Otherwise, the compiler will not let you execute the lambda expression.

ivaylokenov avatar Apr 12 '17 08:04 ivaylokenov