From f802e0a0f20012fbc66088e967dd0d45b6b49c7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Garstecki?= Date: Tue, 6 Aug 2024 11:09:42 +0200 Subject: [PATCH] Update CQRS local execution configuration sample --- docs/cqrs/local_execution/index.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/cqrs/local_execution/index.md b/docs/cqrs/local_execution/index.md index 8af6ac9d..e8451bd4 100644 --- a/docs/cqrs/local_execution/index.md +++ b/docs/cqrs/local_execution/index.md @@ -41,20 +41,21 @@ public override void ConfigureServices(IServiceCollection services) // Registers executor for local commands .WithLocalCommands(c => c + .CQRSTrace() .Secure() .Validate() .TranslateExceptions() .CommitTransaction()) // Registers executor for local queries - .WithLocalQueries(c => c - .Validate() - .TranslateExceptions()) + .WithLocalQueries(q => q + .CQRSTrace() + .Secure()) // Registers executor for local operations - .WithLocalOperations(c => c + .WithLocalOperations(o => o + .CQRSTrace() .Secure() - .TranslateExceptions() .CommitTransaction()); } ```