我有下一个代码:
var container = new WindsorContainer()
.Register(Component.For<IAppender>().UsingFactoryMethod(x=>new EventLogAppender()))
.Register(Component.For<IAppender>().UsingFactoryMethod(x=>new ConsoleAppender()));
var appenders = container.ResulveAll<IAppender>();
它在 Seccond Register 行中出现 KernelException“无法实例化自定义激活器”失败。我需要分别配置每个 Appender。谁能帮我避免这个例外?