All notable changes to this project are documented in this file.
ErrorType.Forbidden
- README to NuGet package
ToErrorOr
FailIf
public ErrorOr<TValue> FailIf(Func<TValue, bool> onValue, Error error)
ErrorOr<int> errorOr = 1;
errorOr.FailIf(x => x > 0, Error.Failure());
Then
that receives an action is now calledThenDo
-public ErrorOr<TValue> Then(Action<TValue> action)
+public ErrorOr<TValue> ThenDo(Action<TValue> action)
-public static async Task<ErrorOr<TValue>> Then<TValue>(this Task<ErrorOr<TValue>> errorOr, Action<TValue> action)
+public static async Task<ErrorOr<TValue>> ThenDo<TValue>(this Task<ErrorOr<TValue>> errorOr, Action<TValue> action)
ThenAsync
that receives an action is now calledThenDoAsync
-public async Task<ErrorOr<TValue>> ThenAsync(Func<TValue, Task> action)
+public async Task<ErrorOr<TValue>> ThenDoAsync(Func<TValue, Task> action)
-public static async Task<ErrorOr<TValue>> ThenAsync<TValue>(this Task<ErrorOr<TValue>> errorOr, Func<TValue, Task> action)
+public static async Task<ErrorOr<TValue>> ThenDoAsync<TValue>(this Task<ErrorOr<TValue>> errorOr, Func<TValue, Task> action)