コード例 #1
0
 public AccountController(
     IAuthenticationService authenticationService,
     IWechatLoginEventService wechatLoginEventService,
     IAccountUserService customerService,
     IAccountUserRegistrationService customerRegistrationService,
     IGenericAttributeService genericAttributeService,
     IWorkflowMessageService workflowMessageService,
     IAccountUserActivityService accountUserActivityService,
     IGovernmentService governmentService,
     IWebHelper webHelper,
     IWorkContext workContext, IEncryptionService encryptionService,
     AccountUserSettings customerSettings)
 {
     _authenticationService          = authenticationService;
     _wechatLoginEventService        = wechatLoginEventService;
     _accountService                 = customerService;
     _accountUserRegistrationService = customerRegistrationService;
     _genericAttributeService        = genericAttributeService;
     _workflowMessageService         = workflowMessageService;
     _accountUserActivityService     = accountUserActivityService;
     _governmentService              = governmentService;
     _encryptionService              = encryptionService;
     _webHelper           = webHelper;
     _workContext         = workContext;
     _accountUserSettings = customerSettings;
 }
コード例 #2
0
ファイル: LoginValidator.cs プロジェクト: YuweiDai/CS
 public LoginValidator(AccountUserSettings customerSettings)
 {
     if (!customerSettings.UsernamesEnabled)
     {
         RuleFor(x => x.Username).NotEmpty().WithMessage("登录账户不能为空");
     }
 }
コード例 #3
0
 public AccountUserRegistrationService(IAccountUserService customerService, IEncryptionService encryptionService,
                                       AccountUserSettings customerSettings)
 {
     _accountUserService = customerService;
     _encryptionService  = encryptionService;
     _customerSettings   = customerSettings;
 }
コード例 #4
0
 /// <summary>
 /// Ctor
 /// </summary>
 /// <param name="httpContext">HTTP context</param>
 /// <param name="customerService">AccountUser service</param>
 /// <param name="customerSettings">AccountUser settings</param>
 public TokenAuthenticationService(HttpContextBase httpContext,
                                   IAccountUserService customerService, AccountUserSettings customerSettings)
 {
     this._httpContext      = httpContext;
     this._customerService  = customerService;
     this._customerSettings = customerSettings;
 }
コード例 #5
0
 public AccountUserRegistrationService(IAccountUserService customerService, IEncryptionService encryptionService,
                                       RewardPointsSettings rewardPointsSettings,
                                       AccountUserSettings customerSettings)
 {
     _customerService      = customerService;
     _encryptionService    = encryptionService;
     _rewardPointsSettings = rewardPointsSettings;
     _customerSettings     = customerSettings;
 }
コード例 #6
0
        public AccountUserService(ICacheManager cacheManager,
                                  IRepository <AccountUser> accountUserRepository,
                                  IRepository <AccountUserRole> accountUserRoleRepository,
                                  IRepository <GenericAttribute> gaRepository,
                                  //IRepository<Order> orderRepository,
                                  //IRepository<ForumPost> forumPostRepository,
                                  //IRepository<ForumTopic> forumTopicRepository,
                                  //IRepository<BlogComment> blogCommentRepository,
                                  //IRepository<NewsComment> newsCommentRepository,
                                  //IRepository<PollVotingRecord> pollVotingRecordRepository,
                                  //IRepository<ProductReview> productReviewRepository,
                                  //IRepository<ProductReviewHelpfulness> productReviewHelpfulnessRepository,
                                  //IGenericAttributeService genericAttributeService,
                                  IDataProvider dataProvider,
                                  IDbContext dbContext,
                                  IEventPublisher eventPublisher,
                                  AccountUserSettings accountUserSettings,
                                  CommonSettings commonSettings)
        {
            this._cacheManager              = cacheManager;
            this._accountUserRepository     = accountUserRepository;
            this._accountUserRoleRepository = accountUserRoleRepository;
            this._gaRepository              = gaRepository;
            //this._orderRepository = orderRepository;
            //this._forumPostRepository = forumPostRepository;
            //this._forumTopicRepository = forumTopicRepository;
            //this._blogCommentRepository = blogCommentRepository;
            //this._newsCommentRepository = newsCommentRepository;
            //this._pollVotingRecordRepository = pollVotingRecordRepository;
            //this._productReviewRepository = productReviewRepository;
            //this._productReviewHelpfulnessRepository = productReviewHelpfulnessRepository;
            //this._genericAttributeService = genericAttributeService;
            this._dataProvider   = dataProvider;
            this._dbContext      = dbContext;
            this._eventPublisher = eventPublisher;

            this._accountUserSettings = accountUserSettings;
            this._commonSettings      = commonSettings;
        }
コード例 #7
0
        public DemoController(IAuthenticationService authenticationService, IAccountUserService customerService, ISceneService sceneService, ILocationService locationService,
                              IAccountUserRegistrationService customerRegistrationService,
                              IEncryptionService encryptionService,
                              IWebHelper webHelper,
                              IWorkContext workContext,
                              AccountUserSettings customerSettings, CommonSettings commonSettings, SecuritySettings securitySettings, ISettingService settingService
                              )
        {
            _authenticationService          = authenticationService;
            _accountUserService             = customerService;
            _accountUserRegistrationService = customerRegistrationService;
            _encryptionService = encryptionService;

            _webHelper           = webHelper;
            _workContext         = workContext;
            _accountUserSettings = customerSettings;

            _commonSettings   = commonSettings;
            _securitySettings = securitySettings;
            _settingService   = settingService;
            _sceneService     = sceneService;
            _locationService  = locationService;
        }
コード例 #8
0
        public DemoController(IAuthenticationService authenticationService, IAccountUserService customerService,
                              IAccountUserRegistrationService customerRegistrationService,
                              IGenericAttributeService genericAttributeService,
                              IWorkflowMessageService workflowMessageService, IGovernmentService governmentService, IPropertyService propertyService,
                              IPropertyAllotService propertyAllotService, IPropertyLendService propertyLendService, IPropertyNewCreateService propertyNewCreateService,
                              IPropertyOffService propertyOffService, IPropertyRentService propertyRentService, IEncryptionService encryptionService, IPictureService pictureService,
                              IPropertyEditService propertyEditService, ICopyPropertyService copyPropertyService,
                              IWebHelper webHelper,
                              IWorkContext workContext,
                              AccountUserSettings customerSettings, CommonSettings commonSettings, SecuritySettings securitySettings, ISettingService settingService
                              )
        {
            _authenticationService          = authenticationService;
            _accountUserService             = customerService;
            _accountUserRegistrationService = customerRegistrationService;
            _genericAttributeService        = genericAttributeService;
            _workflowMessageService         = workflowMessageService;
            _governmentService        = governmentService;
            _propertyService          = propertyService;
            _propertyAllotService     = propertyAllotService;
            _propertyLendService      = propertyLendService;
            _propertyNewCreateService = propertyNewCreateService;
            _propertyEditService      = propertyEditService;
            _propertyOffService       = propertyOffService;
            _propertyRentService      = propertyRentService;
            _copyPropertyService      = copyPropertyService;
            _encryptionService        = encryptionService;
            _pictureService           = pictureService;

            _webHelper           = webHelper;
            _workContext         = workContext;
            _accountUserSettings = customerSettings;

            _commonSettings   = commonSettings;
            _securitySettings = securitySettings;
            _settingService   = settingService;
        }