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); }
/// <summary> /// MembershipController constructor /// </summary> /// <param name="repository"></param> /// <param name="orgMemberRepository"></param> /// <param name="membershipManager"></param> /// <param name="userManager"></param> /// <param name="configuration"></param> /// <param name="httpContextAccessor"></param> public MembershipController( IOrganizationRepository repository, IOrganizationMemberRepository orgMemberRepository, IMembershipManager membershipManager, ApplicationIdentityUserManager userManager, IConfiguration configuration, IHttpContextAccessor httpContextAccessor) : base(repository, userManager, httpContextAccessor, membershipManager, configuration) { _membershipManager = membershipManager; _orgMemberRepository = orgMemberRepository; _membershipManager.SetContext(base.SecurityContext); _orgMemberRepository.SetContext(base.SecurityContext); }