public GoogleAuthenticationService(
     IOptions <GoogleShoppingOptions> options,
     ILogger <GoogleAuthenticationService> logger)
 {
     _options = options.Value;
     _logger  = logger;
 }
Example #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GoogleProductService"/> class.
 /// </summary>
 /// <param name="options"></param>
 /// <param name="contentService"></param>
 /// <param name="logger"></param>
 public GoogleProductService(
     IOptions <GoogleShoppingOptions> options,
     ShoppingContentService contentService,
     ILogger <GoogleProductService> logger)
 {
     _options        = options.Value;
     _contentService = contentService ?? throw new System.ArgumentNullException(nameof(contentService));
     _logger         = logger ?? throw new System.ArgumentNullException(nameof(logger));
 }