.Net Core - Validator gets called twice

Hi there,

I just created a simple .Net Core 2.0 Web App while using the ServiceStack.Core 1.0.44. While debugging I see that that my validator is getting called twice for each request. Looking at the call stack I do see that it gets invoked once by “ApplyRequestFilters” and the second time by “ApplyRequestFiltersAsync”.

I guess that it is not the intended behaviour.

Can you provide a standalone sample application which shows the issue?

This project
https://github.com/soernt/ServiceStackJwt
also have the issue that the Validator is getting instanziated two times for each request:

Within the solution start the Fbi.WebApp and call
http://localhost:53933/api/v1/test?requestData=fred
while setting a Breakpoint at
https://github.com/soernt/ServiceStackJwt/blob/master/Fbi.WebApp/Messages/TestRequestDto.cs
At Line 33.

The validator is instantiated twice to determine whether it’s an Async or a Sync filter but the validation logic itself is only executed once.