diff --git a/README.md b/README.md index c14d420..d98a3ae 100644 --- a/README.md +++ b/README.md @@ -35,4 +35,21 @@ public void ConfigureServices(IServiceCollection services) services.AddSwaggerGen(); } ``` +> Example how to add your queries and commands. + +```csharp +private void AddCommands(IServiceCollection services) +{ + services.AddCommand(); + services.AddTransient, CreatePersonCommandValidator>(); + + services.AddCommand(); + services.AddTransient, EchoCommandValidator>(); +} + +private void AddQueries(IServiceCollection services) +{ + services.AddQuery, PersonQueryHandler>(); +} +```