Exemplo n.º 1
0
 protected virtual Task <T> ExecuteThrowingFunctionAsync <T>(string name, Func <Task <T> > method)
 {
     return(CoreUtility.ExecuteFunctionAsync <T>(string.Format("{0}.{1}", this.TrackPrefix, name), method, delegate(Exception ex) { throw ex; }));
 }
Exemplo n.º 2
0
 protected virtual Task <T> ExecuteFunctionAsync <T>(string name, Func <Task <T> > method, Action <Exception> onError = null)
 {
     return(CoreUtility.ExecuteFunctionAsync <T>(string.Format("{0}.{1}", this.TrackPrefix, name), method, onError));
 }