Example #1
0
 protected abstract void SendMailInternal(MailRequest mailRequest);
Example #2
0
 protected abstract Task SendMailAsyncInternal(MailRequest mailRequest);
Example #3
0
        public virtual async Task SendMailAsync(MailRequest mailRequest)
        {
            Validate(mailRequest);

            await SendMailAsyncInternal(mailRequest);
        }
Example #4
0
        private void Validate(MailRequest mailRequest)
        {
            var mailRequestValidator = new MailRequestValidator(mailRequest);

            mailRequestValidator.Validate();
        }
Example #5
0
        public virtual void SendMail(MailRequest mailRequest)
        {
            Validate(mailRequest);

            SendMailInternal(mailRequest);
        }