From ea88e47d12ee4d7a21b78e48d71134fbb2e0318e Mon Sep 17 00:00:00 2001 From: Mattias Nordqvist Date: Mon, 11 Sep 2023 16:32:01 +0200 Subject: [PATCH] . --- Diary/2023-09-11_And.md | 2 +- Results/Tap.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Diary/2023-09-11_And.md b/Diary/2023-09-11_And.md index e15873d..e738c3a 100644 --- a/Diary/2023-09-11_And.md +++ b/Diary/2023-09-11_And.md @@ -16,7 +16,7 @@ To fix this, you can nest the Binds, so that the customer reference is available ```csharp Result result = CustomerRepository.Load(customerId) .Bind(customer => OrderRepository.Query(x => x.CustomerId == customerId) - .Bind(orders => customer.SetOrderCount(orders.Count()))); // Binds directly on the returned Result of the previous Bind. + .Bind(orders => customer.SetOrderCount(orders.Count()))); // Binds directly on the returned Result of the function inside the "previous" Bind. ``` "And", can do this for you diff --git a/Results/Tap.cs b/Results/Tap.cs index 9bfb51b..8b0e1b9 100644 --- a/Results/Tap.cs +++ b/Results/Tap.cs @@ -1,5 +1,5 @@ namespace DotNetThoughts.Results; -public static partial class And +public static partial class Extensions { public static Result Tap(this Result source, Action next) {