public void SetUp(IRegisterComponent registerComponent) { registerComponent.RegisterType <IElementServices, ElementServices>(); registerComponent.RegisterType <IUserServices, UserServices>(); registerComponent.RegisterType <ITokenServices, TokenServices>(); registerComponent.RegisterType <ISpeakerService, SpeakerService>(); }
public void SetUp(IRegisterComponent registerComponent) { registerComponent.RegisterType<ICategoryMasterService,CategoryMasterService>(); registerComponent.RegisterType<IEmployeeMasterService,EmployeeMasterService>(); registerComponent.RegisterType<IEmployeeLocationService,EmployeeLocationService>(); registerComponent.RegisterType<IEmployeeSurveyService, EmployeSurveyService>(); }
public void SetUp(IRegisterComponent registerComponent) { registerComponent.RegisterType <IPatientRepository, PatientRepository>(); registerComponent.RegisterType <IDirectTrustPatientRepository, DirectTrustPatientRepository>(); // registerComponent.RegisterType<IUnitOfwork, UnitOfWork>(); registerComponent.RegisterType <IDirectTrustReferrerRepository, DirectTrustReferrerRepository>(); }
public void SetUp(IRegisterComponent registerComponent) { #region Client Portal registerComponent.RegisterType <IStateServices, StateServices>(); registerComponent.RegisterType <ICityServices, CityServices>(); registerComponent.RegisterType <ICountyServices, CountyServices>(); registerComponent.RegisterType <IAddressServices, AddressesServices>(); registerComponent.RegisterType <IDocumentServices, DocumentServices>(); registerComponent.RegisterType <IMenuServices, MenuServices>(); registerComponent.RegisterType <IReferenceDataServices, ReferenceDataServices>(); registerComponent.RegisterType <IOrderEntryService, OrderEntryService>(); registerComponent.RegisterType <IRegisterService, RegisterService>(); registerComponent.RegisterType <IDashBoardService, DashBoardService>(); registerComponent.RegisterType <IPropertyDetailService, PropertyDetailService>(); registerComponent.RegisterType <IOrderNotesService, OrderNotesService>(); registerComponent.RegisterType <IOrderDetailService, OrderDetailService>(); registerComponent.RegisterType <IOrderSummaryService, OrderSummaryService>(); registerComponent.RegisterType <IPostCloseService, PostCloseService>(); registerComponent.RegisterType <IPreCloseService, PreCloseService>(); registerComponent.RegisterType <IAccountServices, AccountServices>(); registerComponent.RegisterType <ITitleClearanceService, TitleClearanceService>(); registerComponent.RegisterType <IOrderTitleService, OrderTitleService>(); registerComponent.RegisterType <ISecurityControlService, SecurityControlService>(); registerComponent.RegisterType <ISecurityFormService, SecurityFormService>(); registerComponent.RegisterType <ISecurityFormControlService, SecurityFormControlService>(); registerComponent.RegisterType <ISecurityFormControlControlConfigService, SecurityFormControlControlConfigService>(); registerComponent.RegisterType <IGenerateDocumentService, GenerateDocumentService>(); registerComponent.RegisterType <IForgotPasswordService, ForgotPasswordService>(); #endregion }
public void SetUp(IRegisterComponent registerComponent) { //regisre DbCFpntext cuz ef lib required //IDataContextAsync context = new Logqso.mvc.DataModel.LogControl.LogControlDB(); ////LogControlDB context = new Logqso.mvc.DataModel.LogControl.LogControlDB(); //var stuff = context.CatOperator.FirstOrDefault(c => c.CatOprName == "SINGLE-OP"); // not needed cuz no interface //registerComponent.RegisterType<IDataContextAsync, LogControlContext>(); #if false //not used in datamodel var contextType = typeof(LogControlContext); //registerComponent.RegisterInstance<IDataContextAsync>(context); Object[] Parms = new Object[] { contextType }; registerComponent.RegisterTypeWithInjectionTypes<IUnitOfWorkAsync, UnitOfWork>(Parms, false); #endif }
public void SetUp(IRegisterComponent registerComponent) { //registerComponent.RegisterType<IService<CatOperator>, Service<CatOperator> >(); //registerComponent.RegisterType<IControlService, ControlService>(); var RepoType = typeof(IRepositoryAsync<CatOperator>); Object[] Parms1 = new Object[] { RepoType }; registerComponent.RegisterTypeWithInjectionTypes<IControlService, ControlService>(Parms1, false); //LogService for Data Conroller var RepoTypelog = typeof(IRepositoryAsync<Log>); Object[] ParmsLog = new Object[] { RepoTypelog }; registerComponent.RegisterTypeWithInjectionTypes<ILogService, LogService>(ParmsLog, false); }
public void Setup(IRegisterComponent registerComponent) { registerComponent.Builder.RegisterType <EventProcessor>() .As <IEventProcessor>() .PropertiesAutowired() .InstancePerLifetimeScope(); }
public void Setup(IRegisterComponent registerComponent) { registerComponent.Builder.RegisterType <DbContextFactory <ApiDbContext> >() .Named <IDbContextFactory>(DbContextName) .As <IDbContextFactory>() .PropertiesAutowired() .InstancePerLifetimeScope(); registerComponent.Builder.RegisterType <DbContextFactory <SapDbContext> >() .Named <IDbContextFactory>(SapContextName) .As <IDbContextFactory>() .PropertiesAutowired() .InstancePerLifetimeScope(); registerComponent.Builder.Register(p => new UnitOfWorkManager(p.ResolveNamed <IDbContextFactory>(DbContextName))) .As <IUnitOfWorkManager>() .PropertiesAutowired() .InstancePerLifetimeScope(); //registerComponent.Builder.RegisterType<BaseRepository<EventStream>>() // .AsImplementedInterfaces() // .PropertiesAutowired() // .InstancePerLifetimeScope(); registerComponent.Builder.Register(p => new BaseRepository <EventStream>(p.ResolveNamed <IDbContextFactory>(DbContextName))) .AsImplementedInterfaces() .PropertiesAutowired() .InstancePerLifetimeScope(); registerComponent.Builder.Register(p => new SapQueryRepository(p.ResolveNamed <IDbContextFactory>(SapContextName))) .AsImplementedInterfaces() .PropertiesAutowired() .InstancePerLifetimeScope(); }
public void SetUp(IRegisterComponent registerComponent) { //registerComponent.RegisterType<IBookServices, BookServices>(); //registerComponent.RegisterType<IUserService, UserServices>(); //registerComponent.RegisterType<ITokenService, TokenServices>(); registerComponent.RegisterType <IOwinSecurityService, OwinSecurityServer>(); #region Juan //registerComponent.RegisterType<IAuthorServices, AuthorServices>(); //registerComponent.RegisterType<IPeatonUserServices, PeatonUserServices>(); //registerComponent.RegisterType<IBusinessServices, BusinessServices.Services.BusinessServices>(); //registerComponent.RegisterType<ITestService, BusinessServices.Services.TestService>(); //registerComponent.RegisterType<IReportPrizeService, BusinessServices.Services.ReportPrizeService>(); registerComponent.RegisterType <ICyclesServices, CyclesServices>(); registerComponent.RegisterType <ICareersServices, CareersServices>(); #endregion #region Develop1 = Leo //76 //124 #endregion }
public void Setup(IRegisterComponent registerComponent) { registerComponent.RegisterType <IUserService, UserService>(); registerComponent.RegisterType <IAccountService, AccountService>(); registerComponent.RegisterType <IRefreshTokenService, RefreshTokenService>(); registerComponent.RegisterType <IPostsService, PostsService>(); }
public void SetUp(IRegisterComponent registerComponent) { registerComponent.RegisterType <IUnitOfWork, UnitOfWork>(); registerComponent.RegisterType <IProductServices, ProductServices>(); registerComponent.RegisterType <IUserServices, UserServices>(); registerComponent.RegisterType <ITokenServices, TokenServices>(); }
public void SetUp(IRegisterComponent registerComponent) { registerComponent.RegisterTypeWithInjectedConstructor <IUnitOfWork, UnitOfWork>("NawafizApp"); registerComponent.RegisterTypeWithTransientLifetimeManager <IUserStore <IdentityUser, Guid>, UserStore>(); registerComponent.RegisterTypeWithTransientLifetimeManager <IRoleStore <IdentityRole, Guid>, RoleStore>(); // Services registerComponent.RegisterType <ILanguageService, LanguageService>(); registerComponent.RegisterType <IUserService, UserService>(); registerComponent.RegisterType <IHotelBlockService, HotelBlockService>(); registerComponent.RegisterType <IRoomService, RoomService>(); registerComponent.RegisterType <IRoomRecServices, RoomRecServices>(); registerComponent.RegisterType <IRoomTypeService, RoomTypeService>(); registerComponent.RegisterType <IRoomStatusService, RoomStatusService>(); registerComponent.RegisterType <IFixOrderEqupService, FixOrderEqupService>(); registerComponent.RegisterType <IFixOrderServices, FixOrderServices>(); registerComponent.RegisterType <IEquipmentService, EquipmentService>(); registerComponent.RegisterType <ICleanOrderService, CleanOrderService>(); registerComponent.RegisterType <IReportService, ReportService>(); registerComponent.RegisterType <INotifictationService, NotifictationService>(); // Validators registerComponent.RegisterType <IValidator <LanguageDto>, LanguageValidator>(); ; registerComponent.RegisterType <IValidator <ChangePasswordDto>, ChangePasswordValidator>(); }
public void SetUp(IRegisterComponent registerComponent) { registerComponent.RegisterSingletonType <IArgumentsParser, DefaultArgumentsParser>(); registerComponent.RegisterSingletonType <IHelpGenerator, DefaultHelpGenerator>(); registerComponent.RegisterSingletonType <IGraphLoader, DefaultGraphLoader>(); registerComponent.RegisterSingletonType <IModelConfiguration, UtilModelConfiguration>(); }
public void SetUp(IRegisterComponent registerComponent) { registerComponent.RegisterType <IProjectServices, ProjectServices>(); registerComponent.RegisterType <ITaskServices, TaskServices>(); registerComponent.RegisterType <IUserServices, UserServices>(); registerComponent.RegisterType <IParentTaskServices, ParentTaskServices>(); }
public void SetUp(IRegisterComponent registerComponent) { registerComponent.RegisterType <IProductServices, ProductServices>(); registerComponent.RegisterType <IDairyServices, DairyServices>(); registerComponent.RegisterType <IUserServices, UserServices>(); registerComponent.RegisterType <ITokenServices, TokenServices>(); }
public void SetUp(IRegisterComponent registerComponent) { registerComponent.RegisterType <IUserServices, UserServices>(); registerComponent.RegisterType <ITokenServices, TokenServices>(); registerComponent.RegisterType <ILeadServices, LeadServices>(); registerComponent.RegisterType <IArticleServices, ArticleServices>(); registerComponent.RegisterType <IArticleCategoryServices, ArticleCategoryServices>(); }
public void SetUp(IRegisterComponent registerComponent) { registerComponent.RegisterType <ITransactionService, TransactionService>(); registerComponent.RegisterType <IUserService, UserService>(); registerComponent.RegisterType <IAccountService, AccountService>(); registerComponent.RegisterType <IBudgetService, BudgetService>(); registerComponent.RegisterType <ICommonService, CommonService>(); }
public void SetUp(IRegisterComponent registerComponent) { // if more services just dup this line with <IOtherServ, OtherServ> ? registerComponent.RegisterType <IProductServices, ProductServices>(); registerComponent.RegisterType <IUserServices, UserServices>(); registerComponent.RegisterType <IBasicAuthTokenServices, BasicAuthTokenServices>(); registerComponent.RegisterType <ITokenAuthServices, TokenAuthServices>(); }
public void SetUp(IRegisterComponent registerComponent) { registerComponent.RegisterType <Master.IStateServices, Master.StateServices>(); registerComponent.RegisterType <Master.IDistrictServices, Master.DistrictServices>(); registerComponent.RegisterType <Common.IUserServices, Common.UserServices>(); registerComponent.RegisterType <Master.IRoleServices, Master.RoleServices>(); registerComponent.RegisterType <Master.ICategoryServices, Master.CategoryServices>(); registerComponent.RegisterType <Vendor.IVendorServices, Vendor.VendorServices>(); }
public void SetUp(IRegisterComponent registerComponent) { registerComponent.RegisterType<IProductServices, ProductServices>(); registerComponent.RegisterType<IUserServices, UserServices>(); //registerComponent.RegisterType< // // // }
public void SetUp(IRegisterComponent registerComponent) { registerComponent.RegisterType <IAuth, Auth>(); registerComponent.RegisterType <IBackerLogic, BackerLogic>(); registerComponent.RegisterType <IProjectLogic, ProjectLogic>(); registerComponent.RegisterType <ICollectionLogic, CollectionLogic>(); //registerComponent.RegisterType(typeof(IBaseLogic<>), typeof(BaseLogic<>)); //registerComponent.RegisterTypeWithControlledLifeTime<IUnitOfWork, UnitOfWork>(); }
public void SetUp(IRegisterComponent registerComponent) { //Basic Authentication Services registerComponent.RegisterType <IUsuarioServices, UsuarioServices>(); registerComponent.RegisterType <ITokenServices, TokenServices>(); //General Services registerComponent.RegisterType <IFotoServices, FotoServices>(); registerComponent.RegisterType <IInspeccionServices, InspeccionServices>(); registerComponent.RegisterType <IOrdenServices, OrdenServices>(); }
public void SetUp(IRegisterComponent registerComponent) { registerComponent.RegisterType <IClientService, ClientService>(); registerComponent.RegisterType <IWorkerService, WorkerService>(); registerComponent.RegisterType <ILoginService, LogInService>(); registerComponent.RegisterType <IBookingService, BookingService>(); registerComponent.RegisterType <IPaymentService, PaymentService>(); registerComponent.RegisterType <IInformService, InformService>(); registerComponent.RegisterType <IReviewService, ReviewService>(); }
public void SetUp(IRegisterComponent registerComponent) { registerComponent.RegisterType <IUserManager, UserManager>(); registerComponent.RegisterType <IRoleManager, RoleManager>(); registerComponent.RegisterType <IReviewManager, ReviewManager>(); registerComponent.RegisterType <IProductManager, ProductManager>(); registerComponent.RegisterType <ICategoryManager, CategoryManager>(); registerComponent.RegisterType <ICartManager, CartManager>(); registerComponent.RegisterType <IPointSystemConfigurationManager, PointSystemConfigurationManager>(); }
public void Setup(IRegisterComponent registerComponent) { registerComponent.Builder.RegisterType <EventStreamCreatedEventHandler>() .As <IEventHandler>() .PropertiesAutowired() .InstancePerLifetimeScope(); registerComponent.Builder.RegisterType <EventStreamCreateRequestHandler>() .As <IRequestHandler>() .PropertiesAutowired() .InstancePerLifetimeScope(); }
public void SetUp(IRegisterComponent registerComponent) { registerComponent.RegisterType <IClientLogic, ClientLogic>(); registerComponent.RegisterType <IPolicyLogic, PolicyLogic>(); registerComponent.RegisterType <IUserLogic, UserLogic>(); registerComponent.RegisterType <IClientRepository, ClientRepository>(); registerComponent.RegisterType <IPolicyRepository, PolicyRepository>(); registerComponent.RegisterType <IUserRepository, UserRepository>(); registerComponent.RegisterType <IContext, Context>(); }
public void SetUp(IRegisterComponent registerComponent) { registerComponent.RegisterType <IUserRepository, UserRepository>(); registerComponent.RegisterType <IRoleRepository, RoleRepository>(); registerComponent.RegisterType <IReviewRepository, ReviewRepository>(); registerComponent.RegisterType <IProductRepository, ProductRepository>(); registerComponent.RegisterType <ICategoryRepository, CategoryRepository>(); registerComponent.RegisterType <ICartRepository, CartRepository>(); registerComponent.RegisterType <IFieldRepository, FieldRepository>(); registerComponent.RegisterType <ICartItemRepository, CartItemRepository>(); registerComponent.RegisterType <IPointSystemConfigurationRepository, PointSystemConfigurationRepository>(); }
public void SetUp(IRegisterComponent registerComponent) { registerComponent.RegisterType<IIncomeRepository, IncomeRepository>(); registerComponent.RegisterType<IExpenditureRepository, ExpenditureRepository>(); registerComponent.RegisterType<ITransferRepository, TransferRepository>(); registerComponent.RegisterType<IOwnerService, OwnerService>(); registerComponent.RegisterType<IAccountService, AccountService>(); registerComponent.RegisterType<IIncomeService, IncomeService>(); registerComponent.RegisterType<IExpenditureService, ExpenditureService>(); registerComponent.RegisterType<ITransferService, TransferService>(); }
public static void LoadContainer(IRegisterComponent register, IEnumerable <Assembly> assemblies) { ContainerConfiguration configuration = new ContainerConfiguration().WithAssemblies(assemblies); using (CompositionHost host = configuration.CreateContainer()) { foreach (IComponent module in host.GetExports <IComponent>()) { module.SetUp(register); } } }
public void SetUp(IRegisterComponent registerComponent) { registerComponent.RegisterType <IUserServices, UserServices>(); registerComponent.RegisterType <ITokenServices, TokenServices>(); registerComponent.RegisterType <IDesignationService, DesignationService>(); registerComponent.RegisterType <ICityService, CityService>(); registerComponent.RegisterType <ICountryService, CountryServices>(); registerComponent.RegisterType <IRoleServices, RoleServices>(); registerComponent.RegisterType <IRoleMenuMappingServices, RoleMenuMappingServices>(); registerComponent.RegisterType <IUserMenuMappingServices, UserMenuMappingServices>(); registerComponent.RegisterType <ICompanyServices, CompanyServices>(); registerComponent.RegisterType <IStateServices, StateServices>(); registerComponent.RegisterType <IAreaServices, AreaServices>(); registerComponent.RegisterType <IOrganizationLevelServices, OrganizationLevelServices>(); registerComponent.RegisterType <IActionServices, ActionServices>(); registerComponent.RegisterType <IDepartmentServices, DepartmentServices>(); registerComponent.RegisterType <IMenuServices, MenuServices>(); registerComponent.RegisterType <IEmployeeService, EmployeeDataAccessLayer>(); registerComponent.RegisterType <IEmployeeAccountService, EmployeeAccountsDataAccessLayer>(); // registerComponent.RegisterType<IEmployeeExperienceService, EmployeeExperienceService>(); registerComponent.RegisterType <IStudentService, StudentService>(); registerComponent.RegisterType <IBDMAppoinmentReport, BDMAppointmentReportService>(); registerComponent.RegisterType <IBDMAttachment, BDMAttachmentService>(); registerComponent.RegisterType <IBDMAppointment, BDMAppointmentDetailDAL>(); registerComponent.RegisterType <IContractorMaster, ContractMasterDataAccessLayer>(); registerComponent.RegisterType <IContractorDetail, ContractDetailsDataAccessLayer>(); registerComponent.RegisterType <IManPower, ManPowerDataAccessLayer>(); registerComponent.RegisterType <IManpowerAttendance, ManpowerAttendanceDAL>(); registerComponent.RegisterType <IAnnexure, AnnexureDataAccessLayer>(); registerComponent.RegisterType <IAssignFieldOfficer, AssignFieldOfficerDataAccessLayer>(); registerComponent.RegisterType <IAssignManpower, AssignManpowerDataAccessLayer>(); registerComponent.RegisterType <ICustomerMapping, CustomerSiteMappingDataAccessLayer>(); registerComponent.RegisterType <ICustomer, CustomerDataAccessLayer>(); registerComponent.RegisterType <IClientLead, ClientLeadChangeDataAccessLayer>(); registerComponent.RegisterType <ICompetitors, CompetitorsDataAccessLayer>(); registerComponent.RegisterType <IEmployeeAccountService, EmployeeAccountsDataAccessLayer>(); registerComponent.RegisterType <ICompanyHolidayService, CompanyHolidayDataAccessLayer>(); registerComponent.RegisterType <ILeaveAllocation, LeaveAllocationDataAccessLayer>(); registerComponent.RegisterType <ILeaveFrequencyService, LeaveFrequencyMasterDataAccessLayer>(); registerComponent.RegisterType <ILeaveMasterService, LeaveMasterDataAccessLayer>(); registerComponent.RegisterType <IOverallAttentance, OverAllAttendanceDataAccessLayer>(); registerComponent.RegisterType <IRequirementServices, RequirementDetailsDataAccessLayer>(); registerComponent.RegisterType <IMappingSalaryComponent, Mapping_SalaryComponentsDAL>(); registerComponent.RegisterType <ISalaryAllocation, salaryAllocationDataAccessLayer>(); registerComponent.RegisterType <ISalaryComponent, SalaryComponentDAL>(); registerComponent.RegisterType <ISiteMapping, SiteMappingDataAccessLayer>(); registerComponent.RegisterType <IShiftMapping, ShiftMappingDataAccessLayer>(); registerComponent.RegisterType <IShiftMaster, ShiftMasterDataAccessLayer>(); registerComponent.RegisterType <ITargetService, TargetDataAccessLayer>(); registerComponent.RegisterType <IStatusMaster, StatusMasterDataAccessLayer>(); registerComponent.RegisterType <IServiceMasterService, ServiceMasterDataAccessLayer>(); }
public void SetUp(IRegisterComponent registerComponent) { registerComponent.RegisterType <IUserDataAccess, UserDataAccess>(); registerComponent.RegisterType <IBodyDataAccess, BodyDataAccess>(); registerComponent.RegisterType <IDocumentDataAccess, DocumentDataAccess>(); registerComponent.RegisterType <IMarginDataAccess, MarginDataAccess>(); registerComponent.RegisterType <IParagraphDataAccess, ParagraphDataAccess>(); registerComponent.RegisterType <ITextDataAccess, TextDataAccess>(); registerComponent.RegisterType <IAuditLogDataAccess, AuditLogDataAccess>(); registerComponent.RegisterType <IStyleDataAccess, StyleDataAccess>(); registerComponent.RegisterType <IStyleClassDataAccess, StyleClassDataAccess>(); registerComponent.RegisterType <IFormatDataAccess, FormatDataAccess>(); }
public void SetUp(IRegisterComponent registerComponent) { registerComponent.RegisterType <iCategoryMasterService, CategoryMasterServiceG>(); registerComponent.RegisterType <iTitleMasterService, TitleMasterServiceG>(); registerComponent.RegisterType <iClientRecordService, ClientRecordServiceG>(); registerComponent.RegisterType <iDescriptionModuleService, DescriptionModuleServiceG>(); registerComponent.RegisterType <iCouponService, CouponService>(); registerComponent.RegisterType <iProjectDetailService, ProjectDetailService>(); registerComponent.RegisterType <iDbManagerService, DbManagerService>(); registerComponent.RegisterType <iBlogModuleService, BlogsModuleServiceG>(); registerComponent.RegisterType <iTagsModuleService, TagsModuleServiceG>(); registerComponent.RegisterType <iClientCommentService, ClientCommentServiceG>(); }
public void SetUp(IRegisterComponent registerComponent) { //AT: Register Service components here registerComponent.RegisterType <IEventServices, EventServices>(); registerComponent.RegisterType <IUserServices, UserServices>(); registerComponent.RegisterType <ITokenServices, TokenServices>(); registerComponent.RegisterType <IEventAttendanceServices, EventAttendanceServices>(); registerComponent.RegisterType <IEventServices, EventServices>(); registerComponent.RegisterType <IMembershipServices, MembershipServices>(); registerComponent.RegisterType <IMenuServices, MenuServices>(); registerComponent.RegisterType <IAuthenticationService, AuthenticationService>(); registerComponent.RegisterType <IHouseHoldServices, HouseHoldServices>(); }
public void SetUp(IRegisterComponent registerComponent) { // if more services just dup this line with <IOtherServ, OtherServ> ? registerComponent.RegisterType <IPlayerInfoServices, PlayerInfoServices>(); registerComponent.RegisterType <IUserInfoServices, UserInfoServices>(); registerComponent.RegisterType <IPoolLastYearServices, PoolLastYearServices>(); registerComponent.RegisterType <IPastPlayerInfoServices, PastPlayerInfoServices>(); registerComponent.RegisterType <IConfigServices, ConfigServices>(); registerComponent.RegisterType <ITeamScheduleServices, TeamScheduleServices>(); registerComponent.RegisterType <INewsServices, NewsServices>(); registerComponent.RegisterType <IPlayoffPlayerInfoServices, PlayoffPlayerInfoServices>(); registerComponent.RegisterType <IPlayoffUserInfoServices, PlayoffUserInfoServices>(); }
public void SetUp(IRegisterComponent registerComponent) { registerComponent.RegisterType <IUserAuthenticationService, UserAuthenticationServices>(); registerComponent.RegisterType <IUserServices, UserServices>(); registerComponent.RegisterType <ITokenServices, TokenServices>(); registerComponent.RegisterType <IRoleService, RoleServices>(); registerComponent.RegisterType <IDeceaseTypeService, PatientServices>(); registerComponent.RegisterType <IPatientAdmissionService, PatientAdmissionService>(); registerComponent.RegisterType <IDepartmentTypeServices, DepartmentTypeServices>(); registerComponent.RegisterType <IDepartmentServices, DepartmentServices>(); registerComponent.RegisterType <IDoctorServices, DoctorServices>(); registerComponent.RegisterType <IDeceaseTypeServices, DeceaseTypeServices>(); }
public void SetUp(IRegisterComponent registerComponent) { //AT: Register Service components here registerComponent.RegisterType<IEventServices, EventServices>(); registerComponent.RegisterType<IUserServices, UserServices>(); registerComponent.RegisterType<ITokenServices, TokenServices>(); registerComponent.RegisterType<IEventAttendanceServices, EventAttendanceServices>(); registerComponent.RegisterType<IEventServices, EventServices>(); registerComponent.RegisterType<IMembershipServices, MembershipServices>(); registerComponent.RegisterType<IMenuServices, MenuServices>(); registerComponent.RegisterType<IAuthenticationService, AuthenticationService>(); registerComponent.RegisterType<IHouseHoldServices, HouseHoldServices>(); }
public void SetUp(IRegisterComponent registerComponent) { #if false var contextType = typeof(LogControlContext); //registerComponent.RegisterInstance<IDataContextAsync>(context); Object[] Parms = new Object[] { contextType }; registerComponent.RegisterTypeWithInjectionTypes<IUnitOfWorkAsync, UnitOfWork>(Parms, false); #endif }
public void SetUp(IRegisterComponent registerComponent) { // register service locator registerComponent.RegisterType<IServiceLocator, CustomUnityServiceLocator>(); }
public void SetUp(IRegisterComponent registerComponent) { registerComponent.RegisterType<IUserServices, UserServices>(); registerComponent.RegisterType<ITokenServices, TokenServices>(); }
public void SetUp(IRegisterComponent registerComponent) { #if true //registerComponent.RegisterType<IDataContextAsync, LogqsoDataContext>(); // registerComponent.RegisterType<IUnitOfWorkAsync, UnitOfWork>(); //registerComponent.RegisterType<IRepositoryAsync<CatOperator>, Repository<CatOperator>>(); registerComponent.RegisterType<ILogqsoControlContext, ContestqsoContext>(); registerComponent.RegisterType<IControlUnitOfWorkAsync, ControlUnitOfWork>(); registerComponent.RegisterType<IRepositoryAsync<CatOperator>, ResposituryControl<CatOperator>>(); #else //regisre DbCFpntext cuz ef lib required //LogControlDB context = new Logqso.mvc.DataModel.LogControl.LogControlDB(); var contextType = typeof(LogControlContext); //registerComponent.RegisterInstance<LogControlDB>(context); #if true //MOVED FROM UI LATER //var contextType = typeof(LogControlContext); //registerComponent.RegisterInstance<IDataContextAsync>(context); Object[] Parms = new Object[] { contextType }; registerComponent.RegisterTypeWithInjectionTypes<IUnitOfWorkAsync, UnitOfWork>(Parms, false); #endif var uowType = typeof(IUnitOfWorkAsync); registerComponent.RegisterType<IDataContextAsync, LogControlContext>(); Object[] Parms2 = new Object[] { contextType, uowType }; registerComponent.RegisterTypeWithInjectionTypes<IRepositoryAsync<CatOperator>, Repository<CatOperator>>(Parms2, false); #endif //LOGQSOSATA #if true //registerComponent.RegisterType<IDataContextAsync, LogqsoDataContext>(); //registerComponent.RegisterType<IUnitOfWorkAsync, UnitOfWork>(); //registerComponent.RegisterType<IRepositoryAsync<Log>, Repository<Log>>(); //support for multiple DB registerComponent.RegisterType<ILogqsoDataContext, ContestqsoDataContext>(); registerComponent.RegisterType<ILogUnitOfWorkAsync, LogUnitOfWork>(); registerComponent.RegisterType<IRepositoryAsync<Log>, ResposituryLog<Log>>(); #else var contextTypeData = typeof(LogqsoDataContext); //registerComponent.RegisterType<IDataContextAsync, LogqsoDataContext>(); //contextTypeData = typeof(IDataContextAsync); Object[] ParmsData = new Object[] { contextTypeData }; registerComponent.RegisterTypeWithInjectionTypes<IUnitOfWorkDataAsync, UnitOfWorkData>(ParmsData, false); //registerComponent.RegisterTypeWithInjectionTypes<IUnitOfWorkAsync, UnitOfWork>(ParmsData, false); var uowTypeData = typeof(IUnitOfWorkDataAsync); Object[] ParmsData2 = new Object[] { contextTypeData, uowTypeData }; registerComponent.RegisterTypeWithInjectionTypes<IRepositoryAsync<Log>, Repository<Log>>(ParmsData2, false); #endif //IUnitOfWorkAsync UowObj = new UnitOfWork(context); //IRepositoryAsync<CatOperator> Repo = new Repository<CatOperator>(context, UowObj); //registerComponent.RegisterInstance<IRepositoryAsync<CatOperator>>(Repo); //var RepoType = typeof(IRepositoryAsync<CatOperator>); //Object[] Parms1 = new Object[] { // RepoType // }; //registerComponent.RegisterTypeWithInjectionTypes<IControlService, ControlService>(Parms1, false); }
public void SetUp(IRegisterComponent registerComponent) { registerComponent.RegisterType(typeof(IGenericRepository<>), typeof(GenericRepository<>)); registerComponent.RegisterType(typeof(IGenericRepository<,>), typeof(GenericRepository<,>)); registerComponent.RegisterType<IUnitOfWork, UnitOfWork>(); }
public void SetUp(IRegisterComponent registerComponent) { registerComponent.RegisterType<IUnitOfWork, UnitOfWork.UnitOfWork>(); }
public void SetUp(IRegisterComponent registerComponent) { registerComponent.RegisterType(typeof(IEntityService<>), typeof(EntityService<>)); registerComponent.RegisterType(typeof(IEntityService<,>), typeof(EntityService<,>)); }