public MailerController(ILoggerFactory loggerFactory, IOptions <MailerSettings> mailerSettings) { _logger = loggerFactory.CreateLogger <MailerController>(); _mailerSettings = mailerSettings.Value; _corelationGuid = Guid.NewGuid(); _logger.LogInformation($"corelation guid :-{_corelationGuid.ToString()}"); }
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; }
private Settings() { Logger = new LoggerSettings(); Mailer = new MailerSettings(); }
public Mailer(MailerSettings mailerSettings) : base(mailerSettings) { }