public BleResultImpl(BleFailure failureCause, Exception innerException, params IBleResult[] nestedFailures) { FailureCause = failureCause; InnerException = innerException; NestedFailures = nestedFailures; IsOperationCompleted = FailureCause == BleFailure.None && InnerException == null && !NestedFailures.Any(f => f != null && !f.IsOperationCompleted); }
public static IBleResult Failure(BleFailure failureCause, IBleResult nestedFailure) { return(new BleResultImpl(failureCause, null, nestedFailure)); }
public static IBleResult <T> Failure <T>(BleFailure failureCause, Exception innerException = null) { return(new BleResultImpl <T>(default, Failure(failureCause, innerException)));
public static IBleResult Failure(BleFailure failureCause, Exception innerException = null) { return(new BleResultImpl(failureCause, innerException)); }