public async Task <IActionResult> WebHookEventDetail(string id)
        {
            if (string.IsNullOrWhiteSpace(id))
            {
                throw new ArgumentException(nameof(id));
            }

            var webhookEvent = await _webhookEventAppService.Get(id);

            return(View(webhookEvent));
        }
Beispiel #2
0
        public async Task Resend(string sendAttemptId)
        {
            var webhookSendAttempt = await _webhookSendAttemptStore.GetAsync(AbpSession.TenantId, Guid.Parse(sendAttemptId));

            var webhookEvent = await _webhookEventAppService.Get(webhookSendAttempt.WebhookEventId.ToString());

            var webhookSubscription = await _webhookSubscriptionAppService.GetSubscription(webhookSendAttempt.WebhookSubscriptionId.ToString());

            _backgroundJobManager.Enqueue <WebhookSenderJob, WebhookSenderArgs>(new WebhookSenderArgs()
            {
                TenantId              = AbpSession.TenantId,
                WebhookEventId        = webhookSendAttempt.WebhookEventId,
                WebhookSubscriptionId = webhookSendAttempt.WebhookSubscriptionId,
                Data        = webhookEvent.Data,
                WebhookName = webhookEvent.WebhookName,
                WebhookUri  = webhookSubscription.WebhookUri,
                Headers     = webhookSubscription.Headers,
                Secret      = webhookSubscription.Secret,
                TryOnce     = true
            });
        }