Verbara.Sdk.Push.Webhooks 2.2.1

dotnet add package Verbara.Sdk.Push.Webhooks --version 2.2.1
                    
NuGet\Install-Package Verbara.Sdk.Push.Webhooks -Version 2.2.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Verbara.Sdk.Push.Webhooks" Version="2.2.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Verbara.Sdk.Push.Webhooks" Version="2.2.1" />
                    
Directory.Packages.props
<PackageReference Include="Verbara.Sdk.Push.Webhooks" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Verbara.Sdk.Push.Webhooks --version 2.2.1
                    
#r "nuget: Verbara.Sdk.Push.Webhooks, 2.2.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Verbara.Sdk.Push.Webhooks@2.2.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Verbara.Sdk.Push.Webhooks&version=2.2.1
                    
Install as a Cake Addin
#tool nuget:?package=Verbara.Sdk.Push.Webhooks&version=2.2.1
                    
Install as a Cake Tool

Verbara.Sdk.Push.Webhooks

Outbound HTTP webhook delivery for Verbara.Sdk.Push. Consumes events from the in-process Push bus, matches them against WebhookSubscription topic patterns, and POSTs to configured URLs with HMAC-SHA256 signing and exponential retry/backoff.

Usage

using Verbara.Sdk.Push.Topics;
using Verbara.Sdk.Push.Webhooks;

builder.Services.AddAsteriskPush()
                .AddAsteriskPushWebhooks(opts =>
                {
                    opts.MaxRetries = 5;
                    opts.InitialDelay = TimeSpan.FromSeconds(1);
                    opts.MaxDelay = TimeSpan.FromSeconds(60);
                    opts.TimeoutPerAttempt = TimeSpan.FromSeconds(10);
                });

// Runtime registration:
var store = app.Services.GetRequiredService<IWebhookSubscriptionStore>();
await store.AddAsync(new WebhookSubscription
{
    Id = "crm-prod",
    TopicPattern = TopicPattern.Parse("calls.**"),
    TargetUrl = new("https://crm.example.com/hooks/calls"),
    Secret = "<shared secret>"
});

Delivery headers

Header Value
Content-Type application/json
X-Signature sha256=<hex> (absent if subscription has no secret)
X-Event-Type PushEvent.EventType
User-Agent WebhookDeliveryOptions.UserAgent (default Verbara.Sdk.Push.Webhooks/1.0)
traceparent PushEventMetadata.TraceContext (absent if null)

Extra per-subscription headers are appended from WebhookSubscription.Headers.

Extension points

  • Custom payload shape: implement IWebhookPayloadSerializer and register as singleton before AddAsteriskPushWebhooks.
  • Custom signature: implement IWebhookSigner (e.g., JWT, asymmetric signatures) and register as singleton.
  • Durable subscriptions: implement IWebhookSubscriptionStore (SQL/Redis/Postgres) and register as singleton. The default InMemoryWebhookSubscriptionStore is process-local.

Observability

Counters on Verbara.Sdk.Push.Webhooks meter:

  • asterisk.push.webhooks.deliveries.succeeded
  • asterisk.push.webhooks.deliveries.failed
  • asterisk.push.webhooks.deliveries.retried
  • asterisk.push.webhooks.deliveries.dead_letter

Enroll via Verbara.Sdk.OpenTelemetryWithAllSources() includes this meter automatically once the meter name is added to AsteriskTelemetry.MeterNames.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
2.2.1 130 5/23/2026
2.2.0 110 5/20/2026
2.1.2 97 5/8/2026
2.1.1 94 5/7/2026
2.1.0 84 5/7/2026
2.0.0 88 5/6/2026