コード例 #1
0
 public MembershipManager(
     IPersonRepository personRepo,
     IOrganizationRepository organizationRepo,
     IOrganizationMemberRepository organzationMemberRepo,
     IAccessRequestRepository accessRequestRepo,
     IPersonEmailRepository personEmailRepository,
     IEmailVerificationRepository emailVerificationRepository,
     IAccessRequestsManager accessRequestManager,
     IOrganizationUnitRepository organizationUnitRepository,
     IAspNetUsersRepository aspNetUsersRepository,
     ApplicationIdentityUserManager userManager,
     IPasswordPolicyRepository passwordPolicyRepository,
     IHttpContextAccessor accessor
     )
 {
     _personRepo                  = personRepo;
     _organizationRepo            = organizationRepo;
     _organzationMemberRepo       = organzationMemberRepo;
     _accessRequestRepo           = accessRequestRepo;
     _personEmailRepository       = personEmailRepository;
     _emailVerificationRepository = emailVerificationRepository;
     _accessRequestManager        = accessRequestManager;
     _organizationUnitRepository  = organizationUnitRepository;
     _aspNetUsersRepository       = aspNetUsersRepository;
     _userManager                 = userManager;
     _passwordPolicyRepository    = passwordPolicyRepository;
     _accessor = accessor;
 }
コード例 #2
0
        /// <summary>
        /// AccessRequestsController constructor
        /// </summary>
        /// <param name="repository"></param>
        /// <param name="manager"></param>
        /// <param name="accessRequestManager"></param>
        /// <param name="userManager"></param>
        /// <param name="httpContextAccessor"></param>
        public AccessRequestsController(
            IAccessRequestRepository repository,
            IMembershipManager manager,
            IAccessRequestsManager accessRequestManager,
            ApplicationIdentityUserManager userManager,
            IConfiguration configuration,
            IHttpContextAccessor httpContextAccessor) : base(repository, userManager, httpContextAccessor, manager, configuration)
        {
            _manager = manager;
            this.accessRequestManager = accessRequestManager;

            _manager.SetContext(base.SecurityContext);;
            this.accessRequestManager.SetContext(base.SecurityContext);
        }
コード例 #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>
 public OrganizationMembersController(IOrganizationMemberRepository repository,
                                      IMembershipManager membershipManager,
                                      ApplicationIdentityUserManager userManager,
                                      IHttpContextAccessor httpContextAccessor,
                                      IPersonRepository personRepository,
                                      IAccessRequestsManager accessRequestManager,
                                      IConfiguration configuration,
                                      IEmailManager emailSender) : base(repository, userManager, httpContextAccessor, membershipManager, configuration)
 {
     this.membershipManager    = membershipManager;
     this.userManager          = userManager;
     this.personRepository     = personRepository;
     this.emailSender          = emailSender;
     this.accessRequestManager = accessRequestManager;
     this.membershipManager.SetContext(SecurityContext);
     this.personRepository.SetContext(SecurityContext);
     this.accessRequestManager.SetContext(SecurityContext);
 }
コード例 #4
0
 public MembershipManager(
     IPersonRepository personRepo,
     IOrganizationRepository organizationRepo,
     IOrganizationMemberRepository organzationMemberRepo,
     IAccessRequestRepository accessRequestRepo,
     IPersonEmailRepository personEmailRepository,
     IEmailVerificationRepository emailVerificationRepository,
     IAccessRequestsManager accessRequestManager,
     IOrganizationUnitRepository organizationUnitRepository,
     IAspNetUsersRepository aspNetUsersRepository)
 {
     _personRepo                  = personRepo;
     _organizationRepo            = organizationRepo;
     _organzationMemberRepo       = organzationMemberRepo;
     _accessRequestRepo           = accessRequestRepo;
     _personEmailRepository       = personEmailRepository;
     _emailVerificationRepository = emailVerificationRepository;
     _accessRequestManager        = accessRequestManager;
     _organizationUnitRepository  = organizationUnitRepository;
     _aspNetUsersRepository       = aspNetUsersRepository;
 }
コード例 #5
0
 /// <summary>
 /// AuthController constructor
 /// </summary>
 /// <param name="userManager"></param>
 /// <param name="signInManager"></param>
 /// <param name="httpContextAccessor"></param>
 /// <param name="configuration"></param>
 /// <param name="logger"></param>
 /// <param name="membershipManager"></param>
 /// <param name="personRepository"></param>
 /// <param name="personEmailRepository"></param>
 /// <param name="emailVerificationRepository"></param>
 /// <param name="emailSender"></param>
 public AuthController(
     ApplicationIdentityUserManager userManager,
     SignInManager <ApplicationUser> signInManager,
     IHttpContextAccessor httpContextAccessor,
     IConfiguration configuration,
     ILogger <AuthController> logger,
     IMembershipManager membershipManager,
     IPersonRepository personRepository,
     IPersonEmailRepository personEmailRepository,
     IEmailVerificationRepository emailVerificationRepository,
     IPasswordPolicyRepository passwordPolicyRepository,
     IEmailManager emailSender,
     IOrganizationManager organizationManager,
     IAccessRequestsManager accessRequestManager,
     IOrganizationMemberRepository organizationMemberRepository,
     IAgentRepository agentRepository,
     ITermsConditionsManager termsConditionsManager,
     IAuditLogRepository auditLogRepository) : base(httpContextAccessor, userManager, membershipManager)
 {
     this.userManager                  = userManager;
     this.signInManager                = signInManager;
     this.configuration                = configuration;
     this.logger                       = logger;
     this.membershipManager            = membershipManager;
     this.personRepository             = personRepository;
     this.emailSender                  = emailSender;
     this.personEmailRepository        = personEmailRepository;
     this.emailVerificationRepository  = emailVerificationRepository;
     this.passwordPolicyRepository     = passwordPolicyRepository;
     this.organizationManager          = organizationManager;
     this.accessRequestManager         = accessRequestManager;
     this.organizationMemberRepository = organizationMemberRepository;
     this.termsConditionsManager       = termsConditionsManager;
     this.agentRepository              = agentRepository;
     this.auditLogRepository           = auditLogRepository;
 }