improve result structure and handling

This commit is contained in:
Oli Sturm
2026-05-04 19:39:49 +01:00
parent 0d02927ba6
commit 73ed4c7b9c
14 changed files with 413 additions and 371 deletions
+2 -1
View File
@@ -2,6 +2,7 @@
using CsharpEs.Domain;
using CsharpEs.Infrastructure;
using CsharpEs.Library;
using static CsharpEs.Library.ResultModule;
public abstract record DemoError
{
@@ -66,7 +67,7 @@ public class Program
.Bind(readModel =>
demoCommands
.Aggregate(
Result<AccountState?, DemoError>.Ok(null),
OkNone<AccountState?, DemoError>(),
(stateResult, command) =>
stateResult
.Bind(state =>