Does Caliburn.micro simplecontainer supports property injection? -
does caliburn.micro simplecontainer supports property injection? how can injection?
yes via bootstrapper.buildup()
- call container.buildup(instance)
in bootstrapper:
simplecontainer _container; protected override void configure() { _container = new simplecontainer(); // register stuff: _container.registersingleton(typeof(iwindowmanager), null, typeof(windowmanager)); base.configure(); } // property inject: protected override void buildup(object instance) { _container.buildup(instance); }
calls ioc.buildup
in code pass through bootstrapper.buildup
method
Comments
Post a Comment