httpflow icon indicating copy to clipboard operation
httpflow copied to clipboard

Update Sample to Latest Version of Template

Open ardalis opened this issue 2 years ago • 4 comments

Remove Autofac, etc.

ardalis avatar Apr 05 '24 17:04 ardalis

Hi @ardalis. I can go for it.

marcotello avatar Apr 05 '24 19:04 marcotello

@marcotello go for it, thanks!

ardalis avatar Apr 05 '24 19:04 ardalis

Hi, thanks for your excellent job, it is the perfect study material! One question, please: Was there any specific reason why Autofac has been replaced by Microsoft native DI? I understand that it is better to have the smallest amount of external libraries to be dependent on, but Autofac has nowadays more useful features compared to native DI as far as I know. For small projects native DI is sufficient, but Clean architecture is supposed to be used in bigger projects where features like interception, custom lifetime scopes, or complex registration logic (Resolving a service with some associated Metadata) could be usefull.

Once again, thanks a lot!

vodicka2000 avatar Apr 06 '24 17:04 vodicka2000

@vodicka2000 See: https://github.com/ardalis/CleanArchitecture/issues/649

While I agree autofac has some nice features it was just adding to the feature count and learning curve of the template and in many cases folks don't need the added complexity.

ardalis avatar Apr 10 '24 15:04 ardalis