/// <summary> /// Constructor. /// </summary> /// <param name="applicationDbContext">Application database context.</param> /// <param name="accessUserPrincipalService">Access user principal service.</param> /// <param name="userManager">User manager.</param> public AccessAuthorityPermissionBehavior( ApplicationDbContext applicationDbContext, IAccessUserPrincipalService accessUserPrincipalService, UserManager <Domain.Entities.User> userManager) { this.accessUserPrincipalService = accessUserPrincipalService; this.applicationDbContext = applicationDbContext; this.userManager = userManager; }
/// <summary> /// Constructor. /// </summary> /// <param name="accessUserPrincipalService">Access user principal service.</param> /// <param name="applicationDbContext">Application database context.</param> /// <param name="mapper">Mapper.</param> public GetUsersAuthoritiesQueryHandler( IAccessUserPrincipalService accessUserPrincipalService, ApplicationDbContext applicationDbContext, IMapper mapper) { this.accessUserPrincipalService = accessUserPrincipalService; this.applicationDbContext = applicationDbContext; this.mapper = mapper; }
/// <summary> /// Constructor. /// </summary> public GetApplicationsFromAllUsersAuthoritiesQueryHandler( ApplicationDbContext dbContext, IMapper mapper, IAccessUserPrincipalService accessUserPrincipalService, UserManager <Domain.Entities.User> userManager) { this.dbContext = dbContext; this.mapper = mapper; this.accessUserPrincipalService = accessUserPrincipalService; this.userManager = userManager; }
/// <summary> /// Constructor. /// </summary> public SendApplicationCommandHandler( ApplicationDbContext dbContext, IMapper mapper, IEmailRendererService emailRendererService, ISmptService smptService, UserManager <Domain.Entities.User> userManager, IAccessUserPrincipalService accessUserPrincipalService, IMediator mediator) { this.accessUserPrincipalService = accessUserPrincipalService; this.dbContext = dbContext; this.mapper = mapper; this.emailRendererService = emailRendererService; this.smptService = smptService; this.userManager = userManager; this.mediator = mediator; }
/// <summary> /// Constructor. /// </summary> public GetApplicationsForApplicantQueryHandler(ApplicationDbContext dbContext, IMapper mapper, IAccessUserPrincipalService accessUserPrincipalService) { this.accessUserPrincipalService = accessUserPrincipalService; this.dbContext = dbContext; this.mapper = mapper; }