Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IWebhookRepository

    Namespace: Umbraco.Cms.Core.Persistence.Repositories
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IWebhookRepository

    Methods

    View Source

    CreateAsync(IWebhook)

    Gets all of the webhooks in the current database.

    Declaration
    Task<IWebhook> CreateAsync(IWebhook webhook)
    Parameters
    Type Name Description
    IWebhook webhook

    The webhook you want to create.

    Returns
    Type Description
    Task<IWebhook>

    The created IWebhook webhook

    View Source

    DeleteAsync(IWebhook)

    Gets a webhook by key.

    Declaration
    Task DeleteAsync(IWebhook webhook)
    Parameters
    Type Name Description
    IWebhook webhook

    The webhook to be deleted.

    Returns
    Type Description
    Task A representing the asynchronous operation.
    View Source

    GetAllAsync(Int32, Int32)

    Gets all of the webhooks in the current database.

    Declaration
    Task<PagedModel<IWebhook>> GetAllAsync(int skip, int take)
    Parameters
    Type Name Description
    System.Int32 skip

    Number of entries to skip.

    System.Int32 take

    Number of entries to take.

    Returns
    Type Description
    Task<PagedModel<IWebhook>>

    A paged model of IWebhook objects.

    View Source

    GetAsync(Guid)

    Gets a webhook by key.

    Declaration
    Task<IWebhook> GetAsync(Guid key)
    Parameters
    Type Name Description
    Guid key

    The key of the webhook which will be retrieved.

    Returns
    Type Description
    Task<IWebhook>

    The IWebhook webhook with the given key.

    View Source

    GetByAliasAsync(String)

    Gets a webhook by key.

    Declaration
    Task<PagedModel<IWebhook>> GetByAliasAsync(string alias)
    Parameters
    Type Name Description
    System.String alias

    The alias of an event, which is referenced by a webhook.

    Returns
    Type Description
    Task<PagedModel<IWebhook>>

    A paged model of IWebhook.

    View Source

    GetByIdsAsync(IEnumerable<Guid>)

    Gets webhooks by keys.

    Declaration
    virtual Task<PagedModel<IWebhook>> GetByIdsAsync(IEnumerable<Guid> keys)
    Parameters
    Type Name Description
    IEnumerable<Guid> keys

    The alias of an event, which is referenced by a webhook.

    Returns
    Type Description
    Task<PagedModel<IWebhook>>

    A paged model of IWebhook.

    View Source

    UpdateAsync(IWebhook)

    Updates a given webhook.

    Declaration
    Task UpdateAsync(IWebhook webhook)
    Parameters
    Type Name Description
    IWebhook webhook

    The webhook to be updated.

    Returns
    Type Description
    Task

    The updated IWebhook webhook.

    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • CreateAsync(IWebhook)
      • DeleteAsync(IWebhook)
      • GetAllAsync(Int32, Int32)
      • GetAsync(Guid)
      • GetByAliasAsync(String)
      • GetByIdsAsync(IEnumerable<Guid>)
      • UpdateAsync(IWebhook)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX