Update: Re-published from old blog
I've done it before, but my mind went totally blank yesterday ... due to some typically quick responses from the Castle Users Google Group ... here is the code to do it for future generations to avoid my same silly mistakes ...
1: WindsorContainer container = new WindsorContainer();
2: Type eventBrokerServiceType = typeof (IEventBroker<>);
3: Type brokerType = typeof (EventBroker<>);
4: container.AddComponent("key", eventBrokerServiceType, brokerType);
5: IEventBroker<EventArgs> eventBroker =
04-13-2008 6:56 PM