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; }
public SendGridEmailSender(SendGridOptions config, ILogger <SendGridEmailSender> logger) { _config = config ?? throw new ArgumentNullException(nameof(config)); _logger = logger; }