amantinband / clean-architecture

The ultimate clean architecture template for .NET applications 💪
MIT License
1.4k stars 221 forks source link

Change "AddInfrastructureMiddleware" to "UseInfrastructureMiddleware" #3

Closed amirhessampourhossein closed 7 months ago

amirhessampourhossein commented 7 months ago

Hello @amantinband First of all, I want to thank you for your great clean architecture template. Recently, I have been learning about Clean Architecture and DDD and your YouTube channel taught me a lot about these topics. Thanks a million. 🙏

I have noticed that you use the 'AddInfrastructureMiddleware' extension method to register your EventualConsistencyMiddleware I think it would be a good idea to change the name to UseInfrastructureMiddleware.

amantinband commented 7 months ago

Yeah Use is a better choice here. Not sure why I went with Add in the first place.

amantinband commented 7 months ago

Changed to UseInfrastructure. Thanks for the feedback amir