예제 #1
0
        static BllFactory()
        {
            //ASP.NET Identity

            //Define Ninject Dependency Injection Bindings
            Kernel.Bind <IGeneralCodeManager>().To <GeneraCodeManager>();
            Kernel.Bind <ISubCodeManager>().To <SubCodeManager>();
            Kernel.Bind <IOpportunityManager>().To <OpportunityManager>();
            Kernel.Bind <IindividualDetailsManager>().To <IndividualDetailsManager>();
            Kernel.Bind <IEventManager>().To <EventManager>();
            Kernel.Bind <IJobManager>().To <JobManager>();
            Kernel.Bind <IDimThemesManager>().To <DimThemesManager>();
            Kernel.Bind <ITrainingManager>().To <TrainingManager>();
            Kernel.Bind <IDataServiceManager>().To <DataServiceManager>();
            Kernel.Bind <IThemesVariablesManager>().To <ThemesVariablesManager>();
            Kernel.Bind <IReportsManager>().To <ReportsManager>();
            Kernel.Bind <IFactStatisticalDataManager>().To <FactStatisticalDataManager>();
            Kernel.Bind <IAspNetUsersManager>().To <AspNetUsersManager>();
            Kernel.Bind <IPagesActionsManager>().To <PagesActionsManager>();
            Kernel.Bind <IPagesManager>().To <PagesManager>();
            Kernel.Bind <IConfigCenterManager>().To <ConfigCenterManager>();
            Kernel.Bind <IOrganizationContactInfoManager>().To <OrganizationContactInfoManager>();
            Kernel.Bind <IOrganizationManager>().To <OrganizationManager>();
            Kernel.Bind <IRequestLogManager>().To <RequestLogManager>();
            Kernel.Bind <IFeedbackManager>().To <FeedbackManager>();
            Kernel.Bind <ITestimonialsManager>().To <TestimonialsManager>();
            Kernel.Bind <IPortalUsersManager>().To <PortalUsersManager>();
            Kernel.Bind <INewsManager>().To <NewsManager>();
            Kernel.Bind <IIndividualManager>().To <IndividualManager>();
            Kernel.Bind <IPartnerManager>().To <PartnerManager>();
            Kernel.Bind <IIndManager>().To <IndManager>();
            Kernel.Bind <IOrgManager>().To <OrgManager>();
            Kernel.Bind <IChatLogManager>().To <ChatLogManager>();
            Kernel.Bind <IConceptNonFormalTrainingManager>().To <ConceptNonFormalTrainingManager>();
            Kernel.Bind <ILmisReportsRepository>().To <LmisReportsRepository>();
            Kernel.Bind <IObsceneWordsManager>().To <ObsceneWordsManager>();
            Kernel.Bind <IListOfEmailsManager>().To <ListOfEmailsManager>();
            Kernel.Bind <IHelpfulLinkManager>().To <HelpfulLinkManager>();
            Kernel.Bind <IQualificationsManager>().To <QualificationsManager>();
            Kernel.Bind <IOfficeManager>().To <OfficeManager>();
            Kernel.Bind <IUnionManager>().To <UnionManager>();
            Kernel.Bind <IFaqManager>().To <FaqManager>();
            Kernel.Bind <IConceptsDefinitionsManager>().To <ConceptsDefinitionsManager>();
            Kernel.Bind <IEmployersTrainingProvidersManager>().To <EmployersTrainingProvidersManager>();
            Kernel.Bind <IRecruitmentAgenciesManager>().To <RecruitmentAgenciesManager>();

            //Serve BLL Objects as Singletons
            GeneralCodeMgr       = Kernel.Get <IGeneralCodeManager>();
            SubCodeMgr           = Kernel.Get <ISubCodeManager>();
            OpportunityMgr       = Kernel.Get <IOpportunityManager>();
            IndividualDetailsMgr = Kernel.Get <IindividualDetailsManager>();
            EventMgr             = Kernel.Get <IEventManager>();
            JobMgr                        = Kernel.Get <IJobManager>();
            DimThemesMgr                  = Kernel.Get <IDimThemesManager>();
            TrainingMgr                   = Kernel.Get <ITrainingManager>();
            DataServiceMgr                = Kernel.Get <IDataServiceManager>();
            ThemesVariablesMgr            = Kernel.Get <IThemesVariablesManager>();
            ReportsMgr                    = Kernel.Get <IReportsManager>();
            FactStatisticalDataMgr        = Kernel.Get <IFactStatisticalDataManager>();
            AspNetUsersMgr                = Kernel.Get <IAspNetUsersManager>();
            PagesActionsMgr               = Kernel.Get <IPagesActionsManager>();
            PagesMgr                      = Kernel.Get <IPagesManager>();
            ConfigCenterMgr               = Kernel.Get <IConfigCenterManager>();
            OrganizationContactInfoMgr    = Kernel.Get <IOrganizationContactInfoManager>();
            OrganizationMgr               = Kernel.Get <IOrganizationManager>();
            RequestLogMgr                 = Kernel.Get <IRequestLogManager>();
            FeedbackMgr                   = Kernel.Get <IFeedbackManager>();
            TestimonialsMgr               = Kernel.Get <ITestimonialsManager>();
            PortalUsersMgr                = Kernel.Get <IPortalUsersManager>();
            NewsMgr                       = Kernel.Get <INewsManager>();
            IndividualMgr                 = Kernel.Get <IIndividualManager>();
            PartnersMgr                   = Kernel.Get <IPartnerManager>();
            IndMgr                        = Kernel.Get <IIndManager>();
            OrgMgr                        = Kernel.Get <IOrgManager>();
            ChatLogMgr                    = Kernel.Get <IChatLogManager>();
            ConceptNonFormalTrainingMgr   = Kernel.Get <IConceptNonFormalTrainingManager>();
            LmisReportsRepo               = Kernel.Get <ILmisReportsRepository>();
            ObsceneWordsRepo              = Kernel.Get <IObsceneWordsManager>();
            ListOfEmailsRepo              = Kernel.Get <IListOfEmailsManager>();
            HelpfulLinkRepo               = Kernel.Get <IHelpfulLinkManager>();
            QualificationsRepo            = Kernel.Get <IQualificationsManager>();
            OfficeMgr                     = Kernel.Get <IOfficeManager>();
            UnionMgr                      = Kernel.Get <IUnionManager>();
            FaqMgr                        = Kernel.Get <IFaqManager>();
            ConceptsDefinitionsMgr        = Kernel.Get <IConceptsDefinitionsManager>();
            EmployersTrainingProvidersMgr = Kernel.Get <IEmployersTrainingProvidersManager>();
            RecruitmentAgenciesMgr        = Kernel.Get <IRecruitmentAgenciesManager>();
        }