Пример #1
0
 protected abstract void SendMailInternal(MailRequest mailRequest);
Пример #2
0
 protected abstract Task SendMailAsyncInternal(MailRequest mailRequest);
Пример #3
0
        public virtual async Task SendMailAsync(MailRequest mailRequest)
        {
            Validate(mailRequest);

            await SendMailAsyncInternal(mailRequest);
        }
Пример #4
0
        private void Validate(MailRequest mailRequest)
        {
            var mailRequestValidator = new MailRequestValidator(mailRequest);

            mailRequestValidator.Validate();
        }
Пример #5
0
        public virtual void SendMail(MailRequest mailRequest)
        {
            Validate(mailRequest);

            SendMailInternal(mailRequest);
        }