Пример #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="accountUnitRepository"></param>
 /// <param name="accountCache"></param>
 /// <param name="customAppSession"></param>
 /// <param name="jobUnitRepository"></param>
 /// <param name="divisionCache"></param>
 /// <param name="bankAccountUnitRepository"></param>
 /// <param name="bankAccountCache"></param>
 /// <param name="creditCardUnitRepository"></param>
 /// <param name="organizationExtendedRepository"></param>
 /// <param name="userOrganizationUnitRepository"></param>
 /// <param name="organizationExtendedUnitManager"></param>
 /// <param name="userManager"></param>
 /// <param name="organizationUnitRepository"></param>
 /// <param name="organizationUnitManager"></param>
 public UserSecuritySettingsAppService(
     IRepository <AccountUnit, long> accountUnitRepository,
     IAccountCache accountCache,
     CustomAppSession customAppSession,
     IRepository <JobUnit, int> jobUnitRepository,
     IDivisionCache divisionCache,
     IRepository <BankAccountUnit, long> bankAccountUnitRepository,
     IBankAccountCache bankAccountCache,
     IRepository <ChargeEntryDocumentUnit, long> creditCardUnitRepository,
     IRepository <OrganizationExtended, long> organizationExtendedRepository,
     IRepository <UserOrganizationUnit, long> userOrganizationUnitRepository,
     OrganizationExtendedUnitManager organizationExtendedUnitManager,
     UserManager userManager,
     IRepository <OrganizationUnit, long> organizationUnitRepository,
     OrganizationUnitManager organizationUnitManager
     )
 {
     _accountUnitRepository           = accountUnitRepository;
     _accountCache                    = accountCache;
     _customAppSession                = customAppSession;
     _jobUnitRepository               = jobUnitRepository;
     _divisionCache                   = divisionCache;
     _bankAccountUnitRepository       = bankAccountUnitRepository;
     _bankAccountCache                = bankAccountCache;
     _creditCardUnitRepository        = creditCardUnitRepository;
     _organizationExtendedRepository  = organizationExtendedRepository;
     _userOrganizationUnitRepository  = userOrganizationUnitRepository;
     _organizationExtendedUnitManager = organizationExtendedUnitManager;
     _organizationUnitRepository      = organizationUnitRepository;
     _userManager             = userManager;
     _organizationUnitManager = organizationUnitManager;
 }
Пример #2
0
 public UserAppService(
     IAppUrlService appUrlService,
     RoleManager roleManager,
     IUserEmailer userEmailer,
     IUserListExcelExporter userListExcelExporter,
     INotificationSubscriptionManager notificationSubscriptionManager,
     IAppNotifier appNotifier,
     IRepository <RolePermissionSetting, long> rolePermissionRepository,
     IRepository <UserPermissionSetting, long> userPermissionRepository,
     IRepository <UserRole, long> userRoleRepository,
     IUserPolicy userPolicy,
     IEnumerable <IPasswordValidator <User> > passwordValidators,
     IPasswordHasher <User> passwordHasher,
     IAccountCache accountCache)
 {
     _roleManager                     = roleManager;
     _userEmailer                     = userEmailer;
     _userListExcelExporter           = userListExcelExporter;
     _notificationSubscriptionManager = notificationSubscriptionManager;
     _appNotifier                     = appNotifier;
     _rolePermissionRepository        = rolePermissionRepository;
     _userPermissionRepository        = userPermissionRepository;
     _userRoleRepository              = userRoleRepository;
     _userPolicy         = userPolicy;
     _appUrlService      = appUrlService;
     _passwordValidators = passwordValidators;
     _passwordHasher     = passwordHasher;
     _accountCache       = accountCache;
 }
Пример #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="vendorUnitManager"></param>
 /// <param name="vendorUnitRepository"></param>
 /// <param name="unitOfWorkManager"></param>
 /// <param name="addressAppService"></param>
 /// <param name="addresRepository"></param>
 /// <param name="vendorPaytermRepository"></param>
 /// <param name="typeOfCountryRepository"></param>
 /// <param name="regionRepository"></param>
 /// <param name="countryRepository"></param>
 /// <param name="vendorAliasUnitRepository"></param>
 /// <param name="accountUnitRepository"></param>
 /// <param name="coaUnitRepository"></param>
 /// <param name="vendorAliasUnitManager"></param>
 public VendorUnitAppService(VendorUnitManager vendorUnitManager, IRepository <VendorUnit> vendorUnitRepository,
                             IUnitOfWorkManager unitOfWorkManager, AddressUnitAppService addressAppService,
                             IRepository <AddressUnit, long> addresRepository, IRepository <VendorPaymentTermUnit> vendorPaytermRepository,
                             IRepository <TypeOfCountryUnit, short> typeOfCountryRepository, IRepository <RegionUnit> regionRepository,
                             IRepository <CountryUnit> countryRepository, IRepository <VendorAliasUnit> vendorAliasUnitRepository,
                             IRepository <AccountUnit, long> accountUnitRepository, IRepository <CoaUnit> coaUnitRepository,
                             VendorAliasUnitManager vendorAliasUnitManager, CustomAppSession customAppSession, ICacheManager cacheManager, IAccountCache accountCache)
 {
     _vendorUnitManager         = vendorUnitManager;
     _vendorUnitRepository      = vendorUnitRepository;
     _unitOfWorkManager         = unitOfWorkManager;
     _addressAppService         = addressAppService;
     _addresRepository          = addresRepository;
     _vendorPaytermRepository   = vendorPaytermRepository;
     _typeOfCountryRepository   = typeOfCountryRepository;
     _regionRepository          = regionRepository;
     _countryRepository         = countryRepository;
     _vendorAliasUnitRepository = vendorAliasUnitRepository;
     _accountUnitRepository     = accountUnitRepository;
     _coaUnitRepository         = coaUnitRepository;
     _vendorAliasUnitManager    = vendorAliasUnitManager;
     _customAppSession          = customAppSession;
     _cacheManager = cacheManager;
     _accountCache = accountCache;
 }
Пример #4
0
 static CacheFactory()
 {
     accountCache = Activator.CreateInstance(Type.GetType("LOLServer.cache.impl.AccountCache")) as IAccountCache;
     userCache    = Activator.CreateInstance(Type.GetType("LOLServer.cache.impl.UserCache")) as IUserCache;
     //accountCache =new AccountCache();
     //userCache = new UserCache();
 }
Пример #5
0
 public AccountService(IAccountCache cache, IAccountDatabase db)
 {
     _cache = cache;
     _db    = db;
     _db.GetAccountsOnce().ForEach(
         account => _cache.AddOrUpdate(account)
         );
 }
Пример #6
0
        static cacheFactory()
        {
            CreatePath();

            AccaountCache  = new AccountCache(NameAndPath["AccountFile"]);
            UserCache      = new UserCache();
            PosCache       = new PosCache();
            SkillCache     = new SkillCache();
            InventoryCache = new InventoryCache();
        }
Пример #7
0
        public AccountQuery(IAccountStore accountStore, IProfileStore profileStore, IAccountCache accountCache, IProfileCache profileCache)
        {
            Ensure.Any.IsNotNull(accountStore, nameof(accountStore));
            Ensure.Any.IsNotNull(profileStore, nameof(profileStore));
            Ensure.Any.IsNotNull(accountCache, nameof(accountCache));
            Ensure.Any.IsNotNull(profileCache, nameof(profileCache));

            _accountStore = accountStore;
            _profileStore = profileStore;
            _accountCache = accountCache;
            _profileCache = profileCache;
        }
Пример #8
0
 public SubAccountUnitAppService(SubAccountUnitManager subAccountUnitManager, IRepository <SubAccountUnit, long> subAccountUnitRepository,
                                 IRepository <SubAccountRestrictionUnit, long> subAccountRestrictionUnitRepository, IRepository <AccountUnit, long> accountUnitRepository,
                                 SubAccountRestrictionUnitManager subAccountRestrictionUnitManager, IAccountCache accountCache, ISubAccountRestrictionCache subAccountRestrictionCache, CustomAppSession customAppSession)
 {
     _subAccountUnitManager = subAccountUnitManager;
     _subAccountRestrictionUnitRepository = subAccountRestrictionUnitRepository;
     _accountUnitRepository            = accountUnitRepository;
     _subAccountRestrictionUnitManager = subAccountRestrictionUnitManager;
     _accountCache = accountCache;
     _subAccountRestrictionCache = subAccountRestrictionCache;
     _customAppSession           = customAppSession;
     _subAccountUnitRepository   = subAccountUnitRepository;
 }
Пример #9
0
        public AccountCommand(IPhotoCommand photoCommand, IProfileCommand profileCommand, IUserStore userStore, IAccountStore accountStore, IAccountCache cache)
        {
            Ensure.Any.IsNotNull(photoCommand, nameof(photoCommand));
            Ensure.Any.IsNotNull(profileCommand, nameof(profileCommand));
            Ensure.Any.IsNotNull(userStore, nameof(userStore));
            Ensure.Any.IsNotNull(accountStore, nameof(accountStore));
            Ensure.Any.IsNotNull(cache, nameof(cache));

            _photoCommand   = photoCommand;
            _profileCommand = profileCommand;
            _userStore      = userStore;
            _accountStore   = accountStore;
            _cache          = cache;
        }
Пример #10
0
 public ProfileAppService(
     IAppFolders appFolders,
     IBinaryObjectManager binaryObjectManager,
     ITimeZoneService timezoneService,
     IPictureManager pictureManager,
     IVerificationCodeManager verificationCodeManager,
     IUserAccountManager userAccountManager,
     IAccountCache accountCache,
     UserManager userManager)
 {
     _appFolders              = appFolders;
     _binaryObjectManager     = binaryObjectManager;
     _timeZoneService         = timezoneService;
     _pictureManager          = pictureManager;
     _verificationCodeManager = verificationCodeManager;
     _userAccountManager      = userAccountManager;
     _accountCache            = accountCache;
     _userManager             = userManager;
 }
Пример #11
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="bankAccountUnitManager"></param>
 /// <param name="bankAccountUnitRepository"></param>
 /// <param name="addressAppService"></param>
 /// <param name="addressUnitRepository"></param>
 /// <param name="accountUnitRepository"></param>
 /// <param name="jobUnitRepository"></param>
 /// <param name="typeOfUploadFileUnitRepository"></param>
 /// <param name="typeOfCheckStockUnitRepository"></param>
 /// <param name="vendorUnitRepository"></param>
 /// <param name="batchUnitRepository"></param>
 /// <param name="bankAccountPaymentRangeUnit"></param>
 /// <param name="bankAccountPaymentRangeUnitManager"></param>
 /// <param name="accountCache"></param>
 /// <param name="customAppSession"></param>
 /// <param name="coaUnitRepository"></param>
 public CreditCardCompanyAppService(BankAccountUnitManager bankAccountUnitManager, IRepository<BankAccountUnit, long> bankAccountUnitRepository,
     IAddressUnitAppService addressAppService, IRepository<AddressUnit, long> addressUnitRepository, IRepository<AccountUnit, long> accountUnitRepository,
      IRepository<TypeOfUploadFileUnit, int> typeOfUploadFileUnitRepository,
     IRepository<TypeOfCheckStockUnit, int> typeOfCheckStockUnitRepository, IRepository<VendorUnit, int> vendorUnitRepository,
     IRepository<BatchUnit, int> batchUnitRepository, IAccountCache accountCache, CustomAppSession customAppSession,
     IRepository<CoaUnit> coaUnitRepository)
 {
     _bankAccountUnitManager = bankAccountUnitManager;
     _bankAccountUnitRepository = bankAccountUnitRepository;
     _addressUnitRepository = addressUnitRepository;
     _addressAppService = addressAppService;
     _accountUnitRepository = accountUnitRepository;
     _typeOfCheckStockUnitRepository = typeOfCheckStockUnitRepository;
     _typeOfUploadFileUnitRepository = typeOfUploadFileUnitRepository;
     _vendorUnitRepository = vendorUnitRepository;
     _batchUnitRepository = batchUnitRepository;
     _accountCache = accountCache;
     _customAppSession = customAppSession;
     _coaUnitRepository = coaUnitRepository;
     _bankAccountUnitManager.ServiceFrom = "CreditCardCompany";
 }
Пример #12
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="subAccountUnitRepository"></param>
        /// <param name="jobUnitRepository"></param>
        /// <param name="customAppSession"></param>
        /// <param name="accountUnitRepository"></param>
        /// <param name="vendorUnitRepository"></param>
        /// <param name="taxCreditUnitRepository"></param>
        /// <param name="vendorCache"></param>
        /// <param name="dividsCache"></param>
        /// <param name="accountCache"></param>
        /// <param name="subAccountCache"></param>
        /// <param name="userOrganizationUnitUnitRepository"></param>
        /// <param name="subAccountRestrictionCache"></param>
        /// <param name="pettyCashAccountUnitRepository"></param>
        /// <param name="vendorPaymentTermUnitRepository"></param>
        /// <param name="bankAccountCache"></param>
        /// <param name="purchaseOrderEntryDocumentDetailUnitRepository"></param>
        /// <param name="purchaseOrderEntryDocumentUnitRepository"></param>
        ///  <param name="organizationExtendedUnitRepository"></param>
        public ListAppService(IRepository <SubAccountUnit, long> subAccountUnitRepository, IRepository <JobUnit> jobUnitRepository,
                              CustomAppSession customAppSession, IRepository <AccountUnit, long> accountUnitRepository,
                              IRepository <VendorUnit> vendorUnitRepository, IRepository <TaxCreditUnit> taxCreditUnitRepository, IVendorCache vendorCache,
                              IDivisionCache dividsCache, IAccountCache accountCache, ISubAccountCache subAccountCache,
                              ISubAccountRestrictionCache subAccountRestrictionCache,
                              IRepository <PettyCashAccountUnit, long> pettyCashAccountUnitRepository,
                              IRepository <VendorPaymentTermUnit> vendorPaymentTermUnitRepository,
                              IBankAccountCache bankAccountCache,
                              IRepository <PurchaseOrderEntryDocumentDetailUnit, long> purchaseOrderEntryDocumentDetailUnitRepository,
                              IRepository <PurchaseOrderEntryDocumentUnit, long> purchaseOrderEntryDocumentUnitRepository,

                              IRepository <OrganizationExtended, long> organizationExtendedUnitRepository,
                              IRepository <UserOrganizationUnit, long> userOrganizationUnitUnitRepository,
                              IRepository <TypeOfUploadFileUnit> typeOfUploadFileUnitRepository,
                              IRepository <BatchUnit, int> batchUnitRepository,
                              IRepository <TypeOfAccountUnit> typeOfAccountUnitRepository
                              )
        {
            _subAccountUnitRepository = subAccountUnitRepository;
            _jobUnitRepository        = jobUnitRepository;
            _accountUnitRepository    = accountUnitRepository;
            _customAppSession         = customAppSession;
            _batchUnitRepository      = batchUnitRepository;
            _taxCreditUnitRepository  = taxCreditUnitRepository;
            _vendorCache                     = vendorCache;
            _divisionCache                   = dividsCache;
            _accountCache                    = accountCache;
            _subAccountCache                 = subAccountCache;
            _subAccountRestrictionCache      = subAccountRestrictionCache;
            _pettyCashAccountUnitRepository  = pettyCashAccountUnitRepository;
            _vendorPaymentTermUnitRepository = vendorPaymentTermUnitRepository;
            _bankAccountCache                = bankAccountCache;
            _purchaseOrderEntryDocumentDetailUnitRepository = purchaseOrderEntryDocumentDetailUnitRepository;
            _purchaseOrderEntryDocumentUnitRepository       = purchaseOrderEntryDocumentUnitRepository;
            _organizationExtendedUnitRepository             = organizationExtendedUnitRepository;
            _userOrganizationUnitUnitRepository             = userOrganizationUnitUnitRepository;
            _typeOfUploadFileUnitRepository = typeOfUploadFileUnitRepository;
            _typeOfAccountUnitRepository    = typeOfAccountUnitRepository;
        }
Пример #13
0
 static CacheFactory()
 {
     accountCache = new AccountCache();
     userCache = new UserCache();
 }
Пример #14
0
 static CacheFactory()
 {
     accountCache = new AccountCache();
     userCache    = new UserCache();
 }
Пример #15
0
 public AccountController(IAccountService accountService, IAccountCache accountCache)
 {
     _accountService = accountService;
     _accountCache   = accountCache;
 }
Пример #16
0
 static cacheFactory()
 {
     AccaountCache = new AccountCache();
 }
Пример #17
0
 public AccountService(IAccountCache cache, IAccountDatabase db)
 {
     _cache = cache;
     _db    = db;
 }
Пример #18
0
 public AccountServiceImpl(IAccountCache accountCache)
 {
     this.accountCache = accountCache;
 }
Пример #19
0
 static CacheFactory()
 {
     roleCache       = new RoleCache();
     accountCache    = new AccountCache();
     battleRoomCache = new BattleRoomCache();
 }