这是基于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.
 
 
 
 
 
 
colin 0c5a11680b upgrade: upgrade abp framework to 9.0.4 1 year ago
..
LINGYUN/Abp/Webhooks/Saas feat: Use group isolation of Webhook definitions 4 years ago
FodyWeavers.xml feat: Use group isolation of Webhook definitions 4 years ago
FodyWeavers.xsd feat: Use group isolation of Webhook definitions 4 years ago
LINGYUN.Abp.Webhooks.Saas.csproj upgrade: upgrade abp framework to 9.0.4 1 year ago
README.EN.md feat(docs): 添加webhooks模块文档 1 year ago
README.md feat(docs): 添加webhooks模块文档 1 year ago

README.md

LINGYUN.Abp.Webhooks.Saas

Webhook SaaS集成模块,提供与ABP SaaS系统的集成支持。

English

功能特性

  • 与ABP SaaS系统集成
  • 支持多租户Webhook
  • SaaS相关的Webhook事件

模块引用

[DependsOn(typeof(AbpWebhooksSaasModule))]
public class YouProjectModule : AbpModule
{
  // other
}

基本用法

  1. 处理SaaS相关的Webhook
public class YourSaasWebhookHandler : IWebhookHandler, ITransientDependency
{
    public async Task HandleWebhookAsync(WebhookPayload webhook)
    {
        if (webhook.WebhookName == "Tenant.Created")
        {
            // 处理租户创建事件
        }
    }
}
  1. 发布SaaS相关的Webhook
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 */ }
        );
    }
}