This project is read-only.

Configuring Bindings in web.config

Jan 6, 2014 at 2:01 PM
Can I configure dependencies in web.config
for example :

public class Bindings : NinjectModule
{
    public override void Load()
    {
        // configure IMailSender and ILogging to resolve to their specified concrete implementations
        Bind<IMailSender>().To<MailSender>();
        Bind<ILogging>().To<MockLogging>();
    }
}
In the above code I want to call "MailSender" from web.config