I am detecting memory leaks in a ServiceStack service (over some period of time) of various dependencies that would be autowired in the container.
I understand from the docs that
Singleton dependencies would be automatically disposed of when the AppHost dies, which makes sense.
However, its not clear to me when
Transient instances would be disposed of, if at all.
Is it safe to assume that the IOC disposes of a previous instance it has injected before it injects a new instance of a Transient dependency?
If not, who’s responsibility is the disposal and where should it be done?