Ejemplo n.º 1
0
 protected async Task <HttpResponseMessage> DoHandlerAsync(string handlerName, Func <Task <HttpResponseMessage> > handler)
 {
     return(await WebOperationRunner.DoActionAsync(handlerName, handler, (ex) =>
     {
         return ProcessResultResponse(HandlerResult.FromException(ex));
     }));
 }
Ejemplo n.º 2
0
 public static async Task <HandlerResult> DoHandlerAsync(string operation, Func <Task <HandlerResult> > action)
 {
     return(await DoActionAsync(operation, action, (ex) => HandlerResult.FromException(ex)));
 }