示例#1
0
 private void executeRejectHandler(Action <Exception> callback, IRejectable rejectable, Exception value)
 {
     try {
         callback(value);
     } catch (Exception exception) {
         rejectable.reject(exception);
     }
 }
示例#2
0
 private void executeResolveHandler(Action callback, IRejectable rejectable)
 {
     try {
         callback();
     } catch (Exception exception) {
         rejectable.reject(exception);
     }
 }