예제 #1
0
        public NotificationEmailSender(
            IOptions<NotificationEmailTextOptions> texts,
            IEmailSender emailSender,
            IEmailUrlGenerator emailUrlGenerator,
            ISemanticLog log)
        {
            Guard.NotNull(texts, nameof(texts));
            Guard.NotNull(emailSender, nameof(emailSender));
            Guard.NotNull(emailUrlGenerator, nameof(emailUrlGenerator));
            Guard.NotNull(log, nameof(log));

            this.texts = texts.Value;
            this.emailSender = emailSender;
            this.emailUrlGenerator = emailUrlGenerator;
            this.log = log;
        }