public TermsConditionsManager(IUserAgreementRepository userAgreementRepository, IUserConsentRepository userConsentRepository) { _userAgreementRepository = userAgreementRepository; _userConsentRepository = userConsentRepository; _userAgreementRepository.SetContext(base.SecurityContext); _userConsentRepository.SetContext(base.SecurityContext); }
/// <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); }
public override void SetContext(UserSecurityContext userSecurityContext) { _userAgreementRepository.SetContext(userSecurityContext); _userConsentRepository.SetContext(userSecurityContext); base.SetContext(userSecurityContext); }