/// <summary> /// UserAgreementController constructor /// </summary> /// <param name="repository"></param> /// <param name="userManager"></param> /// <param name="httpContextAccessor"></param> /// <param name="configuration"></param> /// <param name="membershipManager"></param> /// <param name="personRepository"></param> /// <param name="personEmailRepository"></param> /// <param name="emailVerificationRepository"></param> /// <param name="termsConditionsManager"></param> public UserAgreementController( IUserAgreementRepository repository, ApplicationIdentityUserManager userManager, IHttpContextAccessor httpContextAccessor, IMembershipManager membershipManager, IPersonRepository personRepository, IPersonEmailRepository personEmailRepository, IEmailVerificationRepository emailVerificationRepository, ITermsConditionsManager termsConditionsManager, IConfiguration configuration) : base(repository, userManager, httpContextAccessor, membershipManager, configuration) { _repository = repository; _membershipManager = membershipManager; _personRepository = personRepository; _personEmailRepository = personEmailRepository; _emailVerificationRepository = emailVerificationRepository; _termsConditionsManager = termsConditionsManager; _repository.SetContext(SecurityContext); _membershipManager.SetContext(SecurityContext); _personRepository.SetContext(SecurityContext); _personEmailRepository.SetContext(SecurityContext); _emailVerificationRepository.SetContext(SecurityContext); _termsConditionsManager.SetContext(SecurityContext); }
public override void SetContext(UserSecurityContext userSecurityContext) { _personRepo.SetContext(userSecurityContext);; _organizationRepo.SetContext(userSecurityContext);; _organzationMemberRepo.SetContext(userSecurityContext);; _accessRequestRepo.SetContext(userSecurityContext); _personEmailRepository.SetContext(userSecurityContext); _emailVerificationRepository.SetContext(userSecurityContext); _accessRequestManager.SetContext(userSecurityContext); _organizationUnitRepository.SetContext(userSecurityContext); base.SetContext(userSecurityContext); }