public SendActivationEmailCommand(IAuthService authService, ICryptoService cryptoService,
                                   IEmailSender emailSender, IReadOnlyEmailTemplateGenerator emailTemplateGenerator,
                                   IConfiguration configuration)
 {
     this.authService            = authService;
     this.cryptoService          = cryptoService;
     this.emailSender            = emailSender;
     this.emailTemplateGenerator = emailTemplateGenerator;
     Configuration = configuration;
 }
Esempio n. 2
0
        public SignUpCommand(IAuthService authService, ISerialService serialService,
                             IReadOnlyUserService userService, IEmailSender emailSender, ICryptoService cryptoService,
                             IReadOnlyEmailTemplateGenerator emailTemplateGenerator, IAuthValidationService authValidationService,
                             ICaptchaService captchaService, IConfiguration configuration, IMapper mapper)
        {
            this.authService            = authService;
            this.serialService          = serialService;
            this.userService            = userService;
            this.emailSender            = emailSender;
            this.cryptoService          = cryptoService;
            this.emailTemplateGenerator = emailTemplateGenerator;
            this.authValidationService  = authValidationService;
            this.captchaService         = captchaService;
            this.mapper = mapper;

            Configuration = configuration;
        }
 public GetEmailTemplatesQuery(IReadOnlyEmailTemplateGenerator emailTemplateGenerator)
 {
     this.emailTemplateGenerator = emailTemplateGenerator;
 }