Lifetime of a Model

Feb 22, 2013 at 5:08 PM
Hi
I want to be able label a Model as being instantiated once per application, rather than every time an ApexBroker.GetModel<IXXX>() is called. Can you think of a nice way of doing this ?
Coordinator
Feb 23, 2013 at 5:11 PM
Hi,

Actually, the ApexBroker creates an instance of every model type when it starts up - ApexBroker.GetModel<IXXX> will return that instances - so models are automatically implemented in the way you need :)