Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Sample to Latest Version of Template #723

Open
ardalis opened this issue Apr 5, 2024 · 4 comments
Open

Update Sample to Latest Version of Template #723

ardalis opened this issue Apr 5, 2024 · 4 comments
Assignees
Labels
good first issue help wanted .NET Pull requests that update .net code

Comments

@ardalis
Copy link
Owner

ardalis commented Apr 5, 2024

Remove Autofac, etc.

@ardalis ardalis added help wanted good first issue .NET Pull requests that update .net code labels Apr 5, 2024
@marcotello
Copy link
Contributor

Hi @ardalis. I can go for it.

@ardalis
Copy link
Owner Author

ardalis commented Apr 5, 2024

@marcotello go for it, thanks!

@vodicka2000
Copy link

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!

@ardalis
Copy link
Owner Author

ardalis commented Apr 10, 2024

@vodicka2000 See: #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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue help wanted .NET Pull requests that update .net code
Projects
None yet
Development

No branches or pull requests

3 participants