public WebHookReceivers(IWebHookValidator validator) { shopifySharedSecret = Environment.GetEnvironmentVariable("shopifySharedSecret"); shopifyApiKey = Environment.GetEnvironmentVariable("shopifyApiKey"); shopifyApiPassword = Environment.GetEnvironmentVariable("shopifyApiPassword"); _validator = validator; }
/// <summary>Initializes a new instance of the <see cref="WebHooksController"/> class.</summary> public WebHooksController(IWebHookRegistrationStore webHookRegistrationStore, ILogger <WebHooksController> logger, IWebHookValidator webHookValidator) { _webHookRegistrationStore = webHookRegistrationStore ?? throw new ArgumentNullException(nameof(webHookRegistrationStore)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _webHookValidator = webHookValidator ?? throw new ArgumentNullException(nameof(webHookValidator)); }