因此,我将接口绑定到具体类
_ninjectKernal.Bind<IAuctionContext>().To<AuctionContext>()
我想要在我的代码中做的是获取接口的具体类IAuctionContext。所以我想做这样的事情
IAuctionContext 上下文 = .GetBinding();
context将在哪里类型AuctionContext。
这可能吗。我过去用 StructureMap 做过类似的事情。
因此,我将接口绑定到具体类
_ninjectKernal.Bind<IAuctionContext>().To<AuctionContext>()
我想要在我的代码中做的是获取接口的具体类IAuctionContext。所以我想做这样的事情
IAuctionContext 上下文 = .GetBinding();
context将在哪里类型AuctionContext。
这可能吗。我过去用 StructureMap 做过类似的事情。