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>
        /// AccessRequestsController constructor
        /// </summary>
        /// <param name="repository"></param>
        /// <param name="manager"></param>
        /// <param name="accessRequestManager"></param>
        /// <param name="userManager"></param>
        /// <param name="httpContextAccessor"></param>
        /// <param name="configuration"></param>
        public AccessRequestsController(
            IAccessRequestRepository repository,
            IMembershipManager manager,
            IAccessRequestsManager accessRequestManager,
            ApplicationIdentityUserManager userManager,
            IConfiguration configuration,
            IHttpContextAccessor httpContextAccessor) : base(repository, userManager, httpContextAccessor, manager, configuration)
        {
            _manager = manager;
            _accessRequestManager = accessRequestManager;

            _manager.SetContext(base.SecurityContext);;
            _accessRequestManager.SetContext(base.SecurityContext);
        }
Exemple #3
0
 /// <summary>
 /// OrganizationMembersController constructor
 /// </summary>
 /// <param name="repository"></param>
 /// <param name="membershipManager"></param>
 /// <param name="userManager"></param>
 /// <param name="httpContextAccessor"></param>
 /// <param name="personRepository"></param>
 /// <param name="accessRequestManager"></param>
 /// <param name="emailSender"></param>
 /// <param name="configuration"></param>
 public OrganizationMembersController(
     IOrganizationMemberRepository repository,
     IMembershipManager membershipManager,
     ApplicationIdentityUserManager userManager,
     IHttpContextAccessor httpContextAccessor,
     IPersonRepository personRepository,
     IAccessRequestsManager accessRequestManager,
     IConfiguration configuration,
     IEmailManager emailSender) : base(repository, userManager, httpContextAccessor, membershipManager, configuration)
 {
     _membershipManager    = membershipManager;
     _userManager          = userManager;
     _personRepository     = personRepository;
     _emailSender          = emailSender;
     _accessRequestManager = accessRequestManager;
     _membershipManager.SetContext(SecurityContext);
     _personRepository.SetContext(SecurityContext);
     _accessRequestManager.SetContext(SecurityContext);
 }