Dalstroem / FusionMVVM

[Deprecated] FusionMVVM is a toolkit made for WPF, and provides some easy-to-use features for creating MVVM applications, with focus on dependency injection and loosely-coupled design.
MIT License
0 stars 0 forks source link

Ioc - Register as lazy singleton #5

Closed Dalstroem closed 9 years ago

Dalstroem commented 9 years ago

Same as #2, but do not create the object before it is resolved the first time. All other calls should return the same instance.

Usage

RegisterAsSingleton<IFoo>(() => new Foo());
Dalstroem commented 9 years ago

Implemented in commit 69356b815e46a812bdffeea776d95003187e477b.