public CrmStatusService(IUserService userService, ICrmStatusCacheService crmStatusCacheService, IDapperReadOnlyRepository readOnlyRepository, IDapperWriteRepository writeRepository) : base(readOnlyRepository, writeRepository) { _userService = userService; _crmStatusCacheService = crmStatusCacheService; }
public CrmService(IServiceScopeFactory serviceScopeFactory) : base(serviceScopeFactory) { _crmStatusCacheService = serviceScopeFactory.CreateScope() .ServiceProvider.GetService <ICrmStatusCacheService>(); _crmPriorityCacheService = serviceScopeFactory.CreateScope() .ServiceProvider.GetService <ICrmPriorityCacheService>(); _customerSourceCacheService = serviceScopeFactory.CreateScope() .ServiceProvider.GetService <ICustomerSourceCacheService>(); _productGroupCacheService = serviceScopeFactory.CreateScope() .ServiceProvider.GetService <IProductGroupCacheService>(); _crmTypeCacheService = serviceScopeFactory.CreateScope() .ServiceProvider.GetService <ICrmTypeCacheService>(); _userCacheService = serviceScopeFactory.CreateScope() .ServiceProvider.GetService <IUserCacheService>(); }
public RedisContext(IAppConfigCacheService appConfigCacheService, IBranchCacheService branchCacheService, ICountryCacheService countryCacheService, IProductStatusCacheService productStatusCacheService, IManufacturerCacheService manufacturerCacheService, ICrmPriorityCacheService crmPriorityCacheService, ICrmStatusCacheService crmStatusCacheService, ICrmTypeCacheService crmTypeCacheService, ICustomerSourceCacheService customerSourceCacheService, IProductGroupCacheService productGroupCacheService, IUserCacheService userCacheService, IProvinceCacheService provinceCacheService, IDistrictCacheService districtCacheService, IWardCacheService wardCacheService, ICustomerGroupCacheService customerGroupCacheService, ICustomerVipCacheService customerVipCacheService, ICustomerCacheService customerCacheService, ICrmCacheService crmCacheService, IPayMethodCacheService payMethodCacheService, IInvoiceStatusCacheService invoiceStatusCacheService, ITaskStatusCacheService taskStatusCacheService, ITaskPriorityCacheService taskPriorityCacheService, ITaskTypeCacheService taskTypeCacheService, ITaskLoopCacheService taskLoopCacheService, IReceiptStatusCacheService receiptStatusCacheService, IReceiptDescriptionCacheService receiptDescriptionCacheService, IWarrantyStatusCacheService warrantyStatusCacheService, IWarrantyDescriptionCacheService warrantyDescriptionCacheService, ICandidateStatusCacheService candidateStatusCacheService, IProductUnitCacheService productUnitCacheService, IRecruitmentStatusCacheService recruitmentStatusCacheService, ICustomerUserCacheService customerUserCacheService, ICrmUserCacheService crmUserCacheService) { _appConfigCacheService = appConfigCacheService; _branchCacheService = branchCacheService; _productStatusCacheService = productStatusCacheService; _manufacturerCacheService = manufacturerCacheService; _countryCacheService = countryCacheService; _crmPriorityCacheService = crmPriorityCacheService; _crmStatusCacheService = crmStatusCacheService; _crmTypeCacheService = crmTypeCacheService; _customerSourceCacheService = customerSourceCacheService; _productGroupCacheService = productGroupCacheService; _userCacheService = userCacheService; _provinceCacheService = provinceCacheService; _districtCacheService = districtCacheService; _wardCacheService = wardCacheService; _customerGroupCacheService = customerGroupCacheService; _customerVipCacheService = customerVipCacheService; _customerCacheService = customerCacheService; _crmCacheService = crmCacheService; _payMethodCacheService = payMethodCacheService; _invoiceStatusCacheService = invoiceStatusCacheService; _taskStatusCacheService = taskStatusCacheService; _taskPriorityCacheService = taskPriorityCacheService; _taskTypeCacheService = taskTypeCacheService; _taskLoopCacheService = taskLoopCacheService; _receiptStatusCacheService = receiptStatusCacheService; _receiptDescriptionCacheService = receiptDescriptionCacheService; _warrantyDescriptionCacheService = warrantyDescriptionCacheService; _warrantyStatusCacheService = warrantyStatusCacheService; _candidateStatusCacheService = candidateStatusCacheService; _recruitmentStatusCacheService = recruitmentStatusCacheService; _productUnitCacheService = productUnitCacheService; _customerUserCacheService = customerUserCacheService; _crmUserCacheService = crmUserCacheService; }