Exemplo n.º 1
0
 public MicrosoftAccount(MicrosoftIdentity identity, EmailIdentity email, string?firstName, string?lastName)
 {
     Identity  = identity;
     Email     = email;
     FirstName = firstName;
     LastName  = lastName;
 }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
 public TemplateSender(EmailIdentity emailIdentity) : base(emailIdentity)
 {
 }
Exemplo n.º 5
0
 public TextSender(EmailIdentity emailIdentity) : base(emailIdentity)
 {
 }
Exemplo n.º 6
0
 public EmailSender(EmailIdentity emailIdentity)
 {
     this.emailIdentity = emailIdentity;
     emailMessage       = new MimeMessage();
     emailMessage.From.Add(new MailboxAddress(emailIdentity.Name, emailIdentity.Address));
 }