You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1.2 KiB
1.2 KiB
LINGYUN.Abp.Webhooks.Saas
Webhook SaaS integration module that provides integration with ABP SaaS system.
Features
- Integration with ABP SaaS system
- Support for multi-tenant webhooks
- SaaS-related webhook events
Module Dependencies
[DependsOn(typeof(AbpWebhooksSaasModule))]
public class YouProjectModule : AbpModule
{
// other
}
Basic Usage
- Handle SaaS-related Webhooks
public class YourSaasWebhookHandler : IWebhookHandler, ITransientDependency
{
public async Task HandleWebhookAsync(WebhookPayload webhook)
{
if (webhook.WebhookName == "Tenant.Created")
{
// Handle tenant creation event
}
}
}
- Publish SaaS-related Webhooks
public class YourService
{
private readonly IWebhookPublisher _webhookPublisher;
public YourService(IWebhookPublisher webhookPublisher)
{
_webhookPublisher = webhookPublisher;
}
public async Task PublishSaasWebhook()
{
await _webhookPublisher.PublishAsync(
webhookName: "Tenant.Created",
data: new { /* tenant data */ }
);
}
}