Method SendAsync
- Namespace
- BpNexT.Actions.Abstractions
- Assembly
- BpNexT.Actions.Abstractions.dll
SendAsync(string, object, WebhookSendOptions?, CancellationToken)
Queues one POST of payload (serialized as JSON) to a URL the module
supplies, e.g. from its configuration. Returns once the delivery is queued — the actual
send happens in the background.
Task SendAsync(string url, object payload, WebhookSendOptions? options = null, CancellationToken cancellationToken = default)
Parameters
urlstringpayloadobjectoptionsWebhookSendOptionscancellationTokenCancellationToken
Returns
Exceptions
- ArgumentException
The URL is not an absolute http(s) URL.