So say I have a type that implements interfaces like this:
public class MessageHandler : IHandle<MessageOne>, IHandle<MessageTwo>, IHandle<MessageThree> {
...
}
Binding with conventions doesn't seem to work when
IKernel container = new StandardKernel();
container.Bind(x =>
x.FromAssemblyContaining<MessageHandler>()
.SelectAllClasses()
.InheritedFrom(typeof(IHandle<>))
.BindToSelf())
);
var handlers = container.GetAll(typeof(IHandle<MessageOne>)); // handlers is just empty after trying to get the services
So say I have a type that implements interfaces like this:
Binding with conventions doesn't seem to work when
Is the open generic not supported??