コード例 #1
0
        public WebHookReceivers(IWebHookValidator validator)
        {
            shopifySharedSecret = Environment.GetEnvironmentVariable("shopifySharedSecret");
            shopifyApiKey       = Environment.GetEnvironmentVariable("shopifyApiKey");
            shopifyApiPassword  = Environment.GetEnvironmentVariable("shopifyApiPassword");

            _validator = validator;
        }
コード例 #2
0
 /// <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));
 }