View Source
Class WebhookEventContentBase<TNotification, TEntity>
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public abstract class WebhookEventContentBase<TNotification, TEntity> : WebhookEventBase<TNotification>, IWebhookEvent, INotificationAsyncHandler<TNotification>, INotificationHandler where TNotification : INotification where TEntity : IContentBase
Type Parameters
Name |
Description |
TNotification |
|
TEntity |
|
Constructors
View Source
WebhookEventContentBase(IWebhookFiringService, IWebhookService, IOptionsMonitor<WebhookSettings>, IServerRoleAccessor)
Declaration
protected WebhookEventContentBase(IWebhookFiringService webhookFiringService, IWebhookService webhookService, IOptionsMonitor<WebhookSettings> webhookSettings, IServerRoleAccessor serverRoleAccessor)
Parameters
Methods
View Source
ConvertEntityToRequestPayload(TEntity)
Declaration
protected abstract object ConvertEntityToRequestPayload(TEntity entity)
Parameters
Type |
Name |
Description |
TEntity |
entity |
|
Returns
Type |
Description |
System.Object |
|
View Source
GetEntitiesFromNotification(TNotification)
Declaration
protected abstract IEnumerable<TEntity> GetEntitiesFromNotification(TNotification notification)
Parameters
Type |
Name |
Description |
TNotification |
notification |
|
Returns
Type |
Description |
IEnumerable<TEntity> |
|
View Source
ProcessWebhooks(TNotification, IEnumerable<IWebhook>, CancellationToken)
Declaration
public override async Task ProcessWebhooks(TNotification notification, IEnumerable<IWebhook> webhooks, CancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
TNotification |
notification |
|
IEnumerable<IWebhook> |
webhooks |
|
CancellationToken |
cancellationToken |
|
Returns