Esempio n. 1
0
        public StoreApplication(
            IComponentContext context,
            IStoreService storeService,
            IStoreRepository storeRepository,
            IApplicationRepository applicationRepository,
            IApplicationStoreService applicationStoreService,
            IApplicationStoreRepository applicationStoreRepository,
            IStoreAddressRepository storeAddressRepository,
            IAccountService accountService,
            IAccountInfraService accountInfraService,
            IRoleService roleService)
            : base(context)
        {
            this.storeService               = storeService;
            this.storeRepository            = storeRepository;
            this.applicationRepository      = applicationRepository;
            this.applicationStoreService    = applicationStoreService;
            this.applicationStoreRepository = applicationStoreRepository;
            this.storeAddressRepository     = storeAddressRepository;
            this.accountService             = accountService;

            if (context.TryResolveNamed(FieldType.Store.ToLower(), typeof(IMetadataService), out var metadataService))
            {
                this.metadataService = metadataService as IMetadataService;
            }

            this.accountInfraService = accountInfraService;

            this.roleService = roleService;
        }
 public EAuthController(IOptions <EAuthSettings> settings,
                        IApplicationStoreService applicationStoreService,
                        AuthService authService)
 {
     _settings = settings.Value;
     _applicationStoreService = applicationStoreService;
     _authService             = authService;
 }
Esempio n. 3
0
        internal static IApplicationStoreService GetApplicationStoreService()
        {
            if (_applicationStoreService == null)
            {
                _applicationStoreService = DependencyService.Get <IApplicationStoreService>();
            }

            return(_applicationStoreService);
        }
Esempio n. 4
0
        public AccountApplication(
            IComponentContext context,
            IAccountService accountService,
            IAccountRepository accountRepository,
            IEmailSender svcEmail,
            ILockedUpMemberPolicy lockedUpMemberPolicy,
            ILockMemberPolicy lockMemberPolicy,
            IPasswordPolicy passwordPolicy,
            IApplicationStoreRepository applicationStoreRepository,
            IResetPasswordTokenRepository resetPasswordTokenRepository,
            IApplicationRepository applicationRepository,
            IStoreRepository storeRepositoy,
            IAccountRoleRepository accountRoleRepository,
            IRoleRepository roleRepository,
            IPermissionRepository permissionRepository,
            IResourceRepository resourceRepository,
            ICustomerImportService customerImportService,
            IResetPasswordTokenService resetPasswordTokenService,
            IPasswordLogRepository passwordLogRepository,
            IApplicationStoreService applicationStoreService,
            ICustomerRepository customerRepository,
            IAccountPermissionService accPermissionService,
            IAccountInfraService accountInfraService)
            : base(context)
        {
            this.svcEmail                     = svcEmail;
            this.lockedUpMemberPolicy         = lockedUpMemberPolicy;
            this.lockMemberPolicy             = lockMemberPolicy;
            this.passwordPolicy               = passwordPolicy;
            this.accountService               = accountService;
            this.applicationStoreRepository   = applicationStoreRepository;
            this.resetPasswordTokenRepository = resetPasswordTokenRepository;
            this.applicationRepository        = applicationRepository;
            this.storeRepositoy               = storeRepositoy;
            this.accountRoleRepository        = accountRoleRepository;
            this.roleRepository               = roleRepository;
            this.permissionRepository         = permissionRepository;
            this.resourceRepository           = resourceRepository;
            this.passwordLogRepository        = passwordLogRepository;

            this.customerImportService     = customerImportService;
            this.resetPasswordTokenService = resetPasswordTokenService;
            this.applicationStoreService   = applicationStoreService;
            this.accPermissionService      = accPermissionService;

            this.accountRepository  = accountRepository;
            this.customerRepository = customerRepository;

            if (context.TryResolveNamed(FieldType.Account.ToLower(), typeof(IMetadataService), out var metadataService))
            {
                this.metadataService = metadataService as IMetadataService;
            }

            this.accountInfraService = accountInfraService;
        }
Esempio n. 5
0
 public StoreService(IStoreRepository storeRepository,
                     IApplicationRepository applicationRepository,
                     IApplicationStoreService applicationStoreService,
                     IApplicationStoreRepository applicationStoreRepository,
                     IRoleService roleService)
 {
     this.storeRepository            = storeRepository;
     this.applicationRepository      = applicationRepository;
     this.applicationStoreService    = applicationStoreService;
     this.applicationStoreRepository = applicationStoreRepository;
     this.roleService = roleService;
 }
Esempio n. 6
0
 public AuthService(UserManager <ApplicationUser> userManager,
                    IOptions <TokenConfig> tokenConfig,
                    IApplicationStoreService applicationStoreService,
                    IEmailService emailService,
                    IPersonService personService,
                    IStringLocalizer <SharedResources> localizer)
 {
     _userManager             = userManager;
     _tokenConfig             = tokenConfig.Value;
     _applicationStoreService = applicationStoreService;
     _emailService            = emailService;
     _personService           = personService;
     _localizer = localizer;
 }
Esempio n. 7
0
 public ApplicationStoreApplication(
     IComponentContext context,
     IApplicationStoreService applicationStoreService,
     IApplicationStoreRepository applicationStoreRepository,
     IApplicationRepository applicationRepository,
     IAccountRepository accountRepository,
     IStoreRepository storeRepository)
     : base(context)
 {
     this.applicationStoreService    = applicationStoreService;
     this.applicationStoreRepository = applicationStoreRepository;
     this.applicationRepository      = applicationRepository;
     this.accountRepository          = accountRepository;
     this.storeRepository            = storeRepository;
 }