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(); +} ```