这是基于vue-vben-admin 模板适用于abp Vnext的前端管理项目
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

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

  1. Handle SaaS-related Webhooks
public class YourSaasWebhookHandler : IWebhookHandler, ITransientDependency
{
    public async Task HandleWebhookAsync(WebhookPayload webhook)
    {
        if (webhook.WebhookName == "Tenant.Created")
        {
            // Handle tenant creation event
        }
    }
}
  1. 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 */ }
        );
    }
}