View on GitHub
Clean Architecture Toolkit for .NET
Clean Architecture Toolkit is a clean, modular architecture foundation for .NET applications.
It embraces SOLID principles and focuses on maintainability, testability, and scalability through clear boundaries and pluggable design.

|   HOME   |   MODULE OVERVIEW   |   DEMO   |   CAT.SERVICEREQUESTS   |

Code Reference

» Cat.ServiceRequests.Decorators.Validation Assembly » Cat.ServiceRequests.Decorators.Validation.Extensions Namespace » ServiceCollectionExtensions Class

ServiceCollectionExtensions.AddCatServiceRequestsModuleValidationDecorator(this IServiceProvider, bool) Method

Adds the validation decorator to all service request handlers.

public static System.IServiceProvider AddCatServiceRequestsModuleValidationDecorator(this System.IServiceProvider serviceProvider, bool validationRequired=false);

Parameters

serviceProvider System.IServiceProvider

Must be able to resolve ICatDecoratorFactoryBuilder.

validationRequired System.Boolean

When true, a request without a validator counts as a failure.

Returns

System.IServiceProvider
The same service provider, so calls can be chained.