public static void Then <TError>(this ErrorPromise <TError> promise, Action <bool, TError> action) { promise.Then(() => action(true, default(TError)), error => action(false, error)); }
public ErrorDeferred() { _promise = new ErrorPromise <TError>(); }