Quantcast
Channel: Fluent Validation for .NET
Viewing all articles
Browse latest Browse all 1917

New Post: Use HttpContext.User in Validator

$
0
0
Hello,

I need the HttpContext.User in a validator. What is the best way to accomplish that?

Use an interceptor?

Inject a service in the constructor?
(Maybe using a Func since the validator is static?)

Thank You,
Miguel

Viewing all articles
Browse latest Browse all 1917

Trending Articles