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.7 KiB
1.7 KiB
LINGYUN.Abp.WebhooksManagement.Application.Contracts
Webhook management application service contracts module that defines application service interfaces and DTOs for webhook management.
Features
- Webhook subscription service interfaces
- Webhook group service interfaces
- Webhook definition service interfaces
- Webhook log service interfaces
- Webhook permission definitions
- Webhook DTO definitions
Module Dependencies
[DependsOn(typeof(AbpWebhooksManagementApplicationContractsModule))]
public class YouProjectModule : AbpModule
{
// other
}
Service Interfaces
- IWebhookSubscriptionAppService - Webhook subscription management service
- IWebhookGroupAppService - Webhook group management service
- IWebhookDefinitionAppService - Webhook definition management service
- IWebhookSendAttemptAppService - Webhook send attempt log service
Basic Usage
- Implement Webhook Subscription Service
public class WebhookSubscriptionAppService :
ApplicationService,
IWebhookSubscriptionAppService
{
public async Task<WebhookSubscriptionDto> CreateAsync(
WebhookSubscriptionCreateDto input)
{
// Implement subscription creation logic
}
public async Task<PagedResultDto<WebhookSubscriptionDto>> GetListAsync(
WebhookSubscriptionGetListInput input)
{
// Implement subscription query logic
}
}
- Use Webhook DTOs
public class YourDto
{
public WebhookSubscriptionDto Subscription { get; set; }
public WebhookGroupDto Group { get; set; }
public WebhookDefinitionDto Definition { get; set; }
public WebhookSendAttemptDto SendAttempt { get; set; }
}