I am trying to find, if possible, to step into the validator class (MediatR) where Fluent Validation is being used. Something like this:
When(x=> x.Count != Null && x.Count >= 0 , () =>
{
RuleFor(x=> x.Offset).Matches(isNumber errCode.somethingwrong);
RuleFor(x=> x.Offset).NotNull()));
}
When setting watch on Count
or Offset
(even though I know what it is the Handler) can not see it. Any clues how to see the value?
Reason I ask is that seems the When condition, and program falls into the When block. Either way would like to know if these variables are accessible to view when on break point. .Net core 3.1 vs2019