Ejemplo n.º 1
0
 public SendGridEmailSender(
     IOptions <SendGridOptions> options,
     IHttpClientFactory httpClientFactory,
     ILogger <SendGridEmailSender> logger)
 {
     _options           = options?.Value ?? throw new ArgumentNullException(nameof(options));
     _httpClientFactory = httpClientFactory ?? throw new ArgumentNullException(nameof(httpClientFactory));
     _logger            = logger;
 }
Ejemplo n.º 2
0
 public SendGridEmailSender(SendGridOptions config, ILogger <SendGridEmailSender> logger)
 {
     _config = config ?? throw new ArgumentNullException(nameof(config));
     _logger = logger;
 }