Exemplo n.º 1
0
 public UserService(UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager,
                    IEmailBuilderFactory emailBuilderFactory, IPostBox postBox)
 {
     _userManager         = userManager;
     _signInManager       = signInManager;
     _emailBuilderFactory = emailBuilderFactory;
     _postBox             = postBox;
 }
Exemplo n.º 2
0
 public EmailAppService(
     IUserRepository userRepo,
     IHttpContextAccessor accessor,
     IOptions <EmailAddressesConfig> emailConfig,
     IEmailBuilderFactory emailBuilderFactory,
     IAppEmailService appEmailService
     ) : base(accessor, userRepo)
 {
     this._emailConfig         = emailConfig;
     this._emailBuilderFactory = emailBuilderFactory;
     this._appEmailService     = appEmailService;
 }
 public AccountDeleteMessageHandler(
     IOptionsSnapshot <AccountDeleteConfiguration> accountDeleteConfigurationAccessor,
     IAccountManager accountManager,
     IUserService userService,
     IMessageService messenger,
     IEmailBuilderFactory emailBuilderFactory,
     IAccountDeleteTelemetryService telemetryService,
     ILogger <AccountDeleteMessageHandler> logger)
 {
     _accountDeleteConfigurationAccessor = accountDeleteConfigurationAccessor ?? throw new ArgumentNullException(nameof(accountDeleteConfigurationAccessor));
     _accountManager      = accountManager ?? throw new ArgumentNullException(nameof(accountManager));
     _userService         = userService ?? throw new ArgumentNullException(nameof(userService));
     _messenger           = messenger ?? throw new ArgumentNullException(nameof(messenger));
     _emailBuilderFactory = emailBuilderFactory ?? throw new ArgumentNullException(nameof(emailBuilderFactory));
     _telemetryService    = telemetryService ?? throw new ArgumentNullException(nameof(telemetryService));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }
Exemplo n.º 4
0
 public EmailService(IEmailClient emailClient, IEmailBuilderFactory emailBuilderFactory, ILogger logger)
 {
     fEmailClient         = emailClient;
     fEmailBuilderFactory = emailBuilderFactory;
     fLogger = logger;
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="HandleEmails"/> class.
 /// </summary>
 /// <param name="emailSenderService">The service to send emails.</param>
 /// <param name="emailBuilderFactory">The service to create the emails.</param>
 public HandleEmails(ISenderService <SendGridMessage> emailSenderService, IEmailBuilderFactory emailBuilderFactory)
 {
     _emailSenderService  = emailSenderService;
     _emailBuilderFactory = emailBuilderFactory;
 }