Skip to content

Commit

Permalink
Update CQRS local execution configuration sample
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszgarstecki committed Aug 6, 2024
1 parent 31c22d6 commit f802e0a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions docs/cqrs/local_execution/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,21 @@ public override void ConfigureServices(IServiceCollection services)

// Registers executor for local commands
.WithLocalCommands(c => c
.CQRSTrace()
.Secure()
.Validate()
.TranslateExceptions()
.CommitTransaction<CoreDbContext>())

// 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<CoreDbContext>());
}
```
Expand Down

0 comments on commit f802e0a

Please sign in to comment.