Shouldn’t this just work?
Interface
public interface IConfig : ISmtpConfig, IEventConfig
Binding
kernel.Bind<IConfig>().To<Config>();
Usage
public SmtpClient(ISmtpConfig config)
It complaints that it cant find any bindings for ISmtpConfig
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The answer from anders is correct. This answer here follows up the comments from steven and anders. If you use the conventions extension there is a
BindAllInterfaces(). This automagically binds all interfaces of the class. Here is an example: