Is it possible to bind different interfaces to the same instance of a class implementing all of them?

后端 未结 1 1888
萌比男神i
萌比男神i 2020-12-03 04:32

I have the following (simplified) situation: I have two interfaces

interface IAmAnInterface
{
    void DoSomething();
}

and



        
1条回答
  •  北海茫月
    2020-12-03 05:12

    It is very easy using V3.0.0

    Bind().To().InSingletonScope();
    

    0 讨论(0)
提交回复
热议问题