Skip to content

Commit

Permalink
Merge pull request #196 from mnissl/BindWithTransactionScope
Browse files Browse the repository at this point in the history
BindWithTransactionScope<T, K, E> added.
  • Loading branch information
vkhorikov authored Apr 15, 2020
2 parents 4423e87 + e088146 commit 0a6c200
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ public static Result BindWithTransactionScope<T>(this Result<T> self, Func<T, Re

public static Result BindWithTransactionScope(this Result self, Func<Result> f)
=> WithTransactionScope(() => self.Bind(f));

public static Result<K, E> BindWithTransactionScope<T, K, E>(this Result<T, E> self, Func<T, Result<K, E>> f)
=> WithTransactionScope(() => self.Bind(f));
}
}
#endif

0 comments on commit 0a6c200

Please sign in to comment.