Ejemplo n.º 1
0
 public async Task <OUTCOME> Parse <OUTCOME, MODEL>(
     Stream rawbody
     , Func <List <ErrorDescription>, OUTCOME> onValidationError
     , Func <MODEL, Task <OUTCOME> > onSuccess
     , bool leaveStreamOpen = true
     ) =>
 await ModelValidatorImp.Parse <OUTCOME, MODEL>(rawbody, onValidationError, onSuccess, leaveStreamOpen);
Ejemplo n.º 2
0
 public async Task <OUTCOME> Parse <OUTCOME, MODEL>(
     string rawbody
     , Func <List <ErrorDescription>, OUTCOME> onValidationError
     , Func <MODEL, Task <OUTCOME> > onSuccess
     ) =>
 await ModelValidatorImp.Parse <OUTCOME, MODEL>(rawbody, onValidationError, onSuccess);