IOC and stateless services. Short-lived or single-instance?
https://softwareengineering.stackexchange.com/questions/178660
-
05-11-2019 - |
Frage
Given a garbage-collected framework, when using an IOC container to inject purely stateless services, is it generally better to use the container's single-instance lifespan or to recreate the object each time it is used and throw it, and all its dependencies, away as soon as you're done with them?
Keine korrekte Lösung
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit softwareengineering.stackexchange