/// <inheritdoc /> public override async Task ExecuteAsync(string receiver, WebHookHandlerContext context) { if (receiver == null) { throw new ArgumentNullException("receiver"); } if (context == null) { throw new ArgumentNullException("context"); } WebHookQueueContext queueContext = new WebHookQueueContext(receiver, context); await EnqueueAsync(queueContext); }
/// <summary> /// Enqueues an incoming WebHook for processing outside its immediate HTTP request/response context. /// Any exception thrown will result in an HTTP error response being returned to the party generating /// the WebHook. /// </summary> /// <param name="context">The <see cref="WebHookQueueContext"/> for the WebHook to be enqueued.</param> protected abstract Task EnqueueAsync(WebHookQueueContext context);