0
Answer

How IOC container avoid Singleton issues?

Ask a question
Hi people,

Issues:

1. The default implementation of Singleton pattern is not thread safe and should not be used in multi threaded environments including web servers (e.g; ASP.NET)

2. Singletons introduce tight coupling between collaborating classes

3. Singletons are notoriously difficult to test.

Thanks,
Mursaleen Fayyaz
Jr. Software Engineer