From 0d5ede51f6ea5c7185f2e28d50e8a7e1de9cc20b Mon Sep 17 00:00:00 2001 From: Michal Pawlowicz <152787691+m-Pawlowicz@users.noreply.github.com> Date: Tue, 19 May 2026 13:12:29 +0200 Subject: [PATCH 1/2] fix: corrected reference access in state docs --- src/content/docs/dotnet-next/domain/state.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/docs/dotnet-next/domain/state.md b/src/content/docs/dotnet-next/domain/state.md index 9fee0cf..45461e5 100644 --- a/src/content/docs/dotnet-next/domain/state.md +++ b/src/content/docs/dotnet-next/domain/state.md @@ -26,7 +26,7 @@ public record BookingState : State { public override BookingState When(object @event) => @event switch { RoomBooked booked => this with { Price = booked.Price }, - BookingImported imported => this with { Price = booked.Price }, + BookingImported imported => this with { Price = imported.Price }, _ => this }; } @@ -113,4 +113,4 @@ public record BookingState { } ``` -The `BookingState` type will have a property named `Id` of type `BookingId`. You don't need to set it manually as it will be provided when the state object is recreated from events by the [command service](../../application/app-service). \ No newline at end of file +The `BookingState` type will have a property named `Id` of type `BookingId`. You don't need to set it manually as it will be provided when the state object is recreated from events by the [command service](../../application/app-service). From cbac3299a941bca59b3ce1844b1ccd3b42d0b068 Mon Sep 17 00:00:00 2001 From: Michal Pawlowicz <152787691+m-Pawlowicz@users.noreply.github.com> Date: Tue, 19 May 2026 13:14:02 +0200 Subject: [PATCH 2/2] fix: corrected reference access in state docs --- src/content/docs/dotnet-0.15/domain/state.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/docs/dotnet-0.15/domain/state.md b/src/content/docs/dotnet-0.15/domain/state.md index 577292d..9e6b249 100644 --- a/src/content/docs/dotnet-0.15/domain/state.md +++ b/src/content/docs/dotnet-0.15/domain/state.md @@ -30,7 +30,7 @@ public record BookingState : State { public override BookingState When(object @event) => @event switch { RoomBooked booked => this with { Price = booked.Price }, - BookingImported imported => this with { Price = booked.Price }, + BookingImported imported => this with { Price = imported.Price }, _ => this }; } @@ -110,4 +110,4 @@ public record BookingState { } ``` -The `BookingState` type will have a property named `Id` of type `BookingId`. You don't need to set it manually as it will be provided when the state object is recreated from events by the command service. \ No newline at end of file +The `BookingState` type will have a property named `Id` of type `BookingId`. You don't need to set it manually as it will be provided when the state object is recreated from events by the command service.