Signing Webhooks
using System;
using Microsoft.Extensions.Configuration;
using Deveel.Webhooks;
namespace Example {
public class Startup {
public Startup(IConfiguration config) {
Configuration = config;
}
public IConfiguration Configuration { get; }
public void Configure(IServiceCollection services) {
// ... add any other service you need ...
// this call adds the basic services for sending of webhooks
services.AddWebhookSender<MyWebook>(webhooks => {
// Optional: if not configured by you, the service
// Add a custom signature provider
webhooks.AddSigner<MySigner>();
});
}
}
}Last updated