public WebContainer() { // load the other modules var controllerModule = new AssemblyIHttpControllerNinjectModule(); var repositoryModule = new RepositoryNinjectModule(); var notificationModule = new NotificationNinjectModule(this); // load em Load(new INinjectModule[] { controllerModule, repositoryModule, notificationModule }); }
public PollerContainer() { // bind the worker process Bind<ISynchronize>().To<SessionSynchronize>().InSingletonScope().Named("Session"); Bind<ISynchronize>().To<SpeakerSynchronize>().InSingletonScope().Named("Speaker"); Bind<IProcess>().To<NotificationCheckProcess>().InSingletonScope(); // define all external modules var dataProviderModule = new DataProviderNinjectModule(); var repositoryModule = new RepositoryNinjectModule(); var parsingModule = new ParsingNinjectModule(); var notificationModule = new NotificationNinjectModule(this); // add them into container Load(new List<INinjectModule> { dataProviderModule, repositoryModule, parsingModule, notificationModule }); }