public MicrosoftAccount(MicrosoftIdentity identity, EmailIdentity email, string?firstName, string?lastName) { Identity = identity; Email = email; FirstName = firstName; LastName = lastName; }
public GoogleAccount(GoogleIdentity identity, EmailIdentity email, bool isEmailVerified, string?firstName, string?lastName, Uri?picture, CultureInfo?locale) { Identity = identity; Email = email; IsEmailVerified = isEmailVerified; FirstName = firstName; LastName = lastName; Picture = picture; Locale = locale; }
private async Task <bool> IsAvailableToAttach(EmailIdentity email, CancellationToken ct) { if (await _repository.IsExists(email, ct)) { return(false); } if (await _forbidden.IsEmailHostDenied(email.GetMailAddress().Host, ct)) { return(false); } return(true); }
public TemplateSender(EmailIdentity emailIdentity) : base(emailIdentity) { }
public TextSender(EmailIdentity emailIdentity) : base(emailIdentity) { }
public EmailSender(EmailIdentity emailIdentity) { this.emailIdentity = emailIdentity; emailMessage = new MimeMessage(); emailMessage.From.Add(new MailboxAddress(emailIdentity.Name, emailIdentity.Address)); }