• Core
  • Infrastructure
  • Web
  • Extensions
Search Results for

    Show / Hide Table of Contents
    View Source

    Class WebhookEventContentBase<TNotification, TEntity>

    Inheritance
    System.Object
    WebhookEventBase<TNotification>
    Namespace: Umbraco.Cms.Core.Webhooks
    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
    Type Name Description
    IWebhookFiringService webhookFiringService
    IWebhookService webhookService
    IOptionsMonitor<WebhookSettings> webhookSettings
    IServerRoleAccessor serverRoleAccessor

    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
    Type Description
    Task
    • Improve this Doc
    • View Source
    In This Article
    • Constructors
      • WebhookEventContentBase(IWebhookFiringService, IWebhookService, IOptionsMonitor<WebhookSettings>, IServerRoleAccessor)
    • Methods
      • ConvertEntityToRequestPayload(TEntity)
      • GetEntitiesFromNotification(TNotification)
      • ProcessWebhooks(TNotification, IEnumerable<IWebhook>, CancellationToken)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX