Ejemplo n.º 1
0
        public MailerAsyncProxy(
            INotificationMailRepository notificationMailRepository,
            INotificationEmailDescriber notificationEmailDescriber)
        {
            Require.NotNull(notificationMailRepository, nameof(notificationMailRepository));
            Require.NotNull(notificationEmailDescriber, nameof(notificationEmailDescriber));

            _notificationMailRepository = notificationMailRepository;
            _notificationEmailDescriber = notificationEmailDescriber;
        }
Ejemplo n.º 2
0
        public MailerAsyncProxy(
            INotificationMailRepository notificationMailRepository,
            INotificationEmailDescriber notificationEmailDescriber)
        {
            Require.NotNull(notificationMailRepository, nameof(notificationMailRepository));
            Require.NotNull(notificationEmailDescriber, nameof(notificationEmailDescriber));

            _notificationMailRepository = notificationMailRepository;
            _notificationEmailDescriber = notificationEmailDescriber;
        }
Ejemplo n.º 3
0
        public NotificationMailSender(
            MailerSettings mailerSettings,
            IUserRepository userRepository,
            INotificationMailRepository notificationMailRepository)
        {
            Require.NotNull(mailerSettings, nameof(mailerSettings));
            Require.NotNull(userRepository, nameof(userRepository));
            Require.NotNull(notificationMailRepository, nameof(notificationMailRepository));

            _mailerSettings             = mailerSettings;
            _userRepository             = userRepository;
            _notificationMailRepository = notificationMailRepository;
            _currentTimeout             = mailerSettings.BasicEmailTimeout;
        }
        public NotificationMailSender(
            MailerSettings mailerSettings, 
            IUserRepository userRepository, 
            INotificationMailRepository notificationMailRepository)
        {
            Require.NotNull(mailerSettings, nameof(mailerSettings));
            Require.NotNull(userRepository, nameof(userRepository));
            Require.NotNull(notificationMailRepository, nameof(notificationMailRepository));

            _mailerSettings = mailerSettings;
            _userRepository = userRepository;
            _notificationMailRepository = notificationMailRepository;
            _currentTimeout = mailerSettings.BasicEmailTimeout;
        }