Lazy<> Ninject Injection

后端 未结 3 709
余生分开走
余生分开走 2020-12-11 04:22

I use ninject framework. In my code I have a Lazy object. I can create an instance, but when I call the value property I got an exception.

 private La         


        
3条回答
  •  南笙
    南笙 (楼主)
    2020-12-11 04:30

    Use the factory extension for Ninject https://github.com/ninject/ninject.extensions.factory

提交回复
热议问题