caliburn

Windsor LifeStyle - Shared instance per Graph

我们两清 提交于 2019-11-26 22:10:34
问题 I have 2 types of ViewModel's public class ViewModelA { IService service; private ViewModelB childViewModel; public ViewModelA(IService service,ViewModelB childViewModel) { this.service = service; this.childViewModel = childViewModel; } public ViewModelB ChildViewModel { get { return childViewModel; } } } public class ViewModelB { IService serivce; public ViewModelB(IService service) { this.service = service; } } I have a Service registered into a Windsor Container : public class Service :