Table of Contents

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

url string
payload object
options WebhookSendOptions
cancellationToken CancellationToken

Returns

Task

Exceptions

ArgumentException

The URL is not an absolute http(s) URL.