First project using Prism...
First real project in WPF...
Where should I put my singleton services?
I have an infrastructure project (interfaces, regionNames, etc.) and we also put the implementation of some interfaces in this infrastructure projects. Essentially singletons services available to all modules.
It works if those singletons are used in modules, since the bootstrapper register those services...
But what about other objects in the infrastructure if they need a singleton's instance? cannot be tested without bootsrapper registration? I could possibly add a typical GetInstance() fct and use it... but am I wrong?
I'm now thinking about creating a Common assembly different from the infrastructure. A prism module...
Something to declare??
First real project in WPF...
Where should I put my singleton services?
I have an infrastructure project (interfaces, regionNames, etc.) and we also put the implementation of some interfaces in this infrastructure projects. Essentially singletons services available to all modules.
It works if those singletons are used in modules, since the bootstrapper register those services...
But what about other objects in the infrastructure if they need a singleton's instance? cannot be tested without bootsrapper registration? I could possibly add a typical GetInstance() fct and use it... but am I wrong?
I'm now thinking about creating a Common assembly different from the infrastructure. A prism module...
Something to declare??