Skip to main content

ValidateFn

Inject logic into existing services by introspecting the request and injecting your own validation logic. Exceptions thrown will have the same behaviour as if the service threw it.

If a non-null object is returned the request will short-circuit and return that response.

Assembly: ServiceStack.dll
View Source
Declaration
public delegate object ValidateFn(IServiceBase service, string httpMethod, object requestDto);