From 54da3d42e56046ee459ec8a95cee6d8b7de91cce Mon Sep 17 00:00:00 2001 From: dlebee <36390643+dlebee@users.noreply.github.com> Date: Wed, 11 Aug 2021 17:15:16 -0400 Subject: [PATCH] Update README.md --- README.md | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 2ab85bd..e071c98 100644 --- a/README.md +++ b/README.md @@ -71,10 +71,16 @@ We use fluent validation in all of our projects, but we don't want it to be enfo If you install. ```PoweredSoft.CQRS.FluentValidation``` you can use this way of registrating your commands. ```chsarp -// without Package. -services.AddCommand(); -services.AddTransient, EchoCommandValidator>();*/ +public void ConfigureServices(IServiceCollection services) +{ + // without Package. + services.AddCommand(); + services.AddTransient, EchoCommandValidator>(); +} -// with PoweredSoft.CQRS.FluentValidation package. -services.AddCommandWithValidator(); +public void ConfigureServices(IServiceCollection services) +{ + // with PoweredSoft.CQRS.FluentValidation package. + services.AddCommandWithValidator(); +} ```