Mhotivo.NinjectWebCommon.RegisterServices C# (CSharp) Méthode

RegisterServices() private static méthode

Load your modules or register your services here!
private static RegisterServices ( IKernel kernel ) : void
kernel IKernel The kernel.
Résultat void
        private static void RegisterServices(IKernel kernel)
        {
            kernel.Bind<MhotivoContext>().ToSelf().InRequestScope();
            kernel.Bind<ISessionManagementRepository>().To<SessionManagementRepository>().InRequestScope();
            kernel.Bind<IAcademicYearRepository>().To<AcademicYearRepository>().InRequestScope();
            kernel.Bind<IAcademicYearDetailsRepository>().To<AcademicYearDetailsRepository>().InRequestScope();
            kernel.Bind<IContactInformationRepository>().To<ContactInformationRepository>().InRequestScope();
            kernel.Bind<ICourseRepository>().To<CourseRepository>().InRequestScope();
            kernel.Bind<INotificationRepository>().To<NotificationRepository>().InRequestScope();
            kernel.Bind<IEnrollRepository>().To<EnrollRepository>().InRequestScope();
            kernel.Bind<IGradeRepository>().To<GradeRepository>().InRequestScope();
            kernel.Bind<ITeacherRepository>().To<TeacherRepository>().InRequestScope();
            kernel.Bind<IParentRepository>().To<ParentRepository>().InRequestScope();
            kernel.Bind<IPeopleRepository>().To<PeopleRepository>().InRequestScope();
            kernel.Bind<IStudentRepository>().To<StudentRepository>().InRequestScope();
            kernel.Bind<IUserRepository>().To<UserRepository>().InRequestScope();
            kernel.Bind<IPensumRepository>().To<PensumRepository>().InRequestScope();
            kernel.Bind<INotificationTypeRepository>().To<NotificationTypeRepository>().InRequestScope();
            kernel.Bind<ISecurityRepository>().To<SecurityRepository>().InRequestScope();
            kernel.Bind<IHomeworkRepository>().To<HomeworkRepository>().InRequestScope();
            kernel.Bind<IImportDataRepository>().To<ImportDataRepository>().InRequestScope();
            kernel.Bind<IEducationLevelRepository>().To<EducationLevelRepository>().InRequestScope();
            kernel.Bind<IPasswordGenerationService>().To<PreloadedPasswordsGenerationService>().InRequestScope();
            kernel.Bind<INotificationCommentRepository>().To<NotificationCommentRepository>().InRequestScope();
        }