public AuthorisationService(ApplicationContext context,
                             UserManager <User> userManager,
                             GuidSignInManager signInManager,
                             IConfiguration config,
                             IEmailSendService emailService,
                             IHttpContextAccessor httpContextAccessor)
 {
     this.context             = context;
     this.userManager         = userManager;
     this.signInManager       = signInManager;
     this.config              = config;
     this.emailService        = emailService;
     this.httpContextAccessor = httpContextAccessor;
 }
Beispiel #2
0
 public AddUserCommandHandler(IUnitOfWork unitOfWork,
                              ICommandValidator <AddUser> commandValidator,
                              IEmailSendService emailService,
                              UserManager <User> userManager,
                              GuidSignInManager signInManager,
                              IConfiguration config,
                              IHttpContextAccessor httpContextAccessor)
 {
     this.unitOfWork          = unitOfWork;
     this.commandValidator    = commandValidator;
     this.emailService        = emailService;
     this.userManager         = userManager;
     this.signInManager       = signInManager;
     this.config              = config;
     this.httpContextAccessor = httpContextAccessor;
 }