Update README.md

This commit is contained in:
Mathias Beaulieu-Duncan 2024-08-25 12:40:59 -04:00
parent 2da25631bf
commit 43bf6ebd6b

View File

@ -30,7 +30,7 @@ Our implementation of query and command responsibility segregation (CQRS).
```csharp
public void ConfigureServices(IServiceCollection services)
{
// make sure to add your queries and commands before the .AddPoweredSoftQueries and .AddPoweredSoftCommands
// make sure to add your queries and commands before configuring MvCBuilder with .AddOpenHarborCommands and .AddOpenHarborQueries
AddQueries(services);
AddCommands(services);
@ -68,7 +68,7 @@ private void AddQueries(IServiceCollection services)
We use fluent validation in all of our projects, but we don't want it to be enforced.
If you install. ```PoweredSoft.CQRS.FluentValidation``` you can use this way of registrating your commands.
If you install ```OpenHarbor.CQRS.FluentValidation``` you can use this way of registrating your commands.
```csharp
public void ConfigureServices(IServiceCollection services)
@ -81,7 +81,7 @@ public void ConfigureServices(IServiceCollection services)
public void ConfigureServices(IServiceCollection services)
{
// with PoweredSoft.CQRS.FluentValidation package.
services.AddCommandWithValidator<EchoCommand, string, EchoCommandHandler, EchoCommandValidator>();
services.AddCommand<EchoCommand, string, EchoCommandHandler, EchoCommandValidator>();
}
```