I want services in my code to be able to call other servicestack services directly and with request validation.
In my mind it would be ideal to not to have the use the JsonServiceClient, with all the serialisation and http request etc as the service is running in the same process.
I know I can call:
using (var service = base.ResolveService<MyService>()) {
service.Post(new MyRequest());
}
However this approach does not enforce my request validation code that is built using the standard servicestack fluent validation classes.
Ideally I'd be able to optionally change the request context too, to enable running with different privileges etc.
Could someone please advice how to achieve this.
Thanks.