17 changed files with 113 additions and 51 deletions
@ -0,0 +1,22 @@ |
|||
using LINGYUN.Abp.Webhooks; |
|||
using LINGYUN.Abp.WebhooksManagement.Localization; |
|||
using Volo.Abp.Localization; |
|||
|
|||
namespace LINGYUN.Abp.WebhooksManagement.Webhooks; |
|||
|
|||
public class WebhooksDefinitionProvider : WebhookDefinitionProvider |
|||
{ |
|||
public override void Define(IWebhookDefinitionContext context) |
|||
{ |
|||
context.Add( |
|||
new WebhookDefinition( |
|||
WebhooksNames.CheckConnect, |
|||
L("DisplayName:CheckConnect"), |
|||
L("Description:CheckConnect"))); |
|||
} |
|||
|
|||
private static ILocalizableString L(string name) |
|||
{ |
|||
return LocalizableString.Create<WebhooksManagementResource>(name); |
|||
} |
|||
} |
|||
@ -0,0 +1,6 @@ |
|||
namespace LINGYUN.Abp.WebhooksManagement.Webhooks; |
|||
|
|||
public static class WebhooksNames |
|||
{ |
|||
public const string CheckConnect = "Abp.Webhooks.CheckConnect"; |
|||
} |
|||
Loading…
Reference in new issue