Example #1
0
 public PackageMessageService(
     IMessageService messageService,
     IOptionsSnapshot <EmailConfiguration> emailConfigurationAccessor,
     ILogger <PackageMessageService> logger)
 {
     _serviceConfiguration = new MessageServiceConfiguration(emailConfigurationAccessor);
     _messageService       = messageService ?? throw new ArgumentNullException(nameof(messageService));
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
 }