0
我知道我可以像這樣的一個組件註冊一個單一類型:使用Windsor 3.0+ xml配置,我如何爲服務註冊多種類型?
<component
id="myservice"
service="MyServices.IService"
type="MyServices.Impl.Service1" />
想象這樣一個場景,我有一個類,它IService的這樣一個數組:
public class MyClass
{
public MyClass(IService[] services) { ... }
}
我如何例如,使用XML配置爲IService組件註冊Service1,Service2和Service3?