コード例 #1
0
        public TermsConditionsManager(IUserAgreementRepository userAgreementRepository, IUserConsentRepository userConsentRepository)
        {
            _userAgreementRepository = userAgreementRepository;
            _userConsentRepository   = userConsentRepository;

            _userAgreementRepository.SetContext(base.SecurityContext);
            _userConsentRepository.SetContext(base.SecurityContext);
        }
コード例 #2
0
 /// <summary>
 /// UserConsentController constructor
 /// </summary>
 /// <param name="repository"></param>
 /// <param name="userManager"></param>
 /// <param name="httpContextAccessor"></param>
 /// <param name="membershipManager"></param>
 /// <param name="personRepository"></param>
 /// <param name="personEmailRepository"></param>
 /// <param name="emailVerificationRepository"></param>
 /// <param name="configuration"></param>
 public UserConsentController(
     IUserConsentRepository repository,
     ApplicationIdentityUserManager userManager,
     IHttpContextAccessor httpContextAccessor,
     IMembershipManager membershipManager,
     IPersonRepository personRepository,
     IPersonEmailRepository personEmailRepository,
     IEmailVerificationRepository emailVerificationRepository,
     IConfiguration configuration) : base(repository, userManager, httpContextAccessor, membershipManager, configuration)
 {
     _repository                  = repository;
     _membershipManager           = membershipManager;
     _personRepository            = personRepository;
     _personEmailRepository       = personEmailRepository;
     _emailVerificationRepository = emailVerificationRepository;
     _repository.SetContext(SecurityContext);
     _membershipManager.SetContext(SecurityContext);
     _personRepository.SetContext(SecurityContext);
     _personEmailRepository.SetContext(SecurityContext);
     _emailVerificationRepository.SetContext(SecurityContext);
 }
コード例 #3
0
 public override void SetContext(UserSecurityContext userSecurityContext)
 {
     _userAgreementRepository.SetContext(userSecurityContext);
     _userConsentRepository.SetContext(userSecurityContext);
     base.SetContext(userSecurityContext);
 }