Closed FranckRJ closed 4 years ago
Hi @FranckRJ,
There is no that much difference between them
singleton
scopeshared
scope is thread
safe by default whilst scoped
is not at allshared
scope can also be defaulted instead of singleton
scope via shared_config
Thanks, Kris
Ok, i see better now, thanks !
Hello, I've tried to find more information about scoped scope and shared scope but I don't understand what's the difference between the two (didn't find any doc about it, and I don't understand the difference by reading the examples).
By reading the source code it looks like shared scope can be thread safe, and it provide a config to make it the default scope for an injector, but beside that i don't know.
Can you help me ? Thanks !