BinaryStudio.TaskManager.Web.NinjectModules.MainInjectModule.Load C# (CSharp) Method

Load() public method

Loads the module into the kernel.
public Load ( ) : void
return void
        public override void Load()
        {
            this.Bind<DataBaseContext>().ToMethod(it => new DataBaseContext()).InRequestScope();
            this.Bind<ITaskProcessor>().To<TaskProcessor>().InRequestScope();
            this.Bind<IUserProcessor>().To<UserProcessor>().InRequestScope();
            this.Bind<IUserRepository>().To<UserRepository>().InRequestScope();
            this.Bind<IHumanTaskRepository>().To<HumanTaskRepository>().InRequestScope();
            this.Bind<IReminderRepository>().To<ReminderRepository>().InRequestScope();
            this.Bind<IProjectRepository>().To<ProjectRepository>().InRequestScope();
            this.Bind<ICryptoProvider>().To<CryptoProvider>().InRequestScope();
            this.Bind<IProjectProcessor>().To<ProjectProcessor>().InRequestScope();
            this.Bind<INotifier>().To<Notifier>().InRequestScope();
            this.Bind<IConnectionProvider>().To<ConnectionProvider>().InRequestScope();
            this.Bind<IGlobalHost>().To<GlobalHostImpl>().InRequestScope();
            this.Bind<INewsRepository>().To<NewsRepository>().InRequestScope();
            this.Bind<INewsProcessor>().To<NewsProcessor>().InRequestScope();
            this.Bind<IStringExtensions>().To<StringExtensions>().InRequestScope();
            this.Bind<IReminderProcessor>().To<ReminderProcessor>().InRequestScope();
            this.Bind<IReminderSender>().To<ReminderSender>().InRequestScope();
        }
    }
MainInjectModule