public static void Initialize(IApplicationContext applicationContext, ITicketManager ticketManager , IWorkmateMembershipProvider workmateMembershipProvider, IWorkmateRoleProvider workmateRoleProvider , IArticleManager articleManager, IRequestHelper requestHelper , IArticleAttachmentManager articleAttachmentManager, IApplicationManager applicationManager , IArticleGroupManager articleGroupManager, IArticleGroupThreadManager articleGroupThreadManager , IApplicationDataCache applicationDataCache, IProfileImageManager profileImageManager , ISystemProfileImageManager systemProfileImageManager, IEmailManager emailManager , IEmailPublisher emailPublisher , IOfficeManager officeManager, IDepartmentManager departmentManager ) { _ApplicationContext = applicationContext; _TicketManager = ticketManager; _WorkmateMembershipProvider = workmateMembershipProvider; _WorkmateRoleProvider = workmateRoleProvider; _ArticleManager = articleManager; _RequestHelper = requestHelper; _ArticleAttachmentManager = articleAttachmentManager; _ApplicationManager = applicationManager; _ArticleGroupManager = articleGroupManager; _ArticleGroupThreadManager = articleGroupThreadManager; _ApplicationDataCache = applicationDataCache; _ProfileImageManager = profileImageManager; _SystemProfileImageManager = systemProfileImageManager; _EmailManager = emailManager; _EmailPublisher = emailPublisher; _OfficeManager = officeManager; _DepartmentManager = departmentManager; }
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>(); }
public OfficeServices(IOfficeManager Manager) { this.oManager = Manager; }
public OfficesController(IOfficeManager officeManager, IMapper mapper) { _officeManager = officeManager; _mapper = mapper; }