Search Results for

    Show / Hide Table of Contents
    View Source

    Class RelateOnTrashNotificationHandler

    Inheritance
    object
    Namespace: Umbraco.Cms.Core.Events
    Assembly: Umbraco.Infrastructure.dll
    Syntax
    public sealed class RelateOnTrashNotificationHandler : INotificationHandler<ContentMovedNotification>, INotificationHandler<ContentMovedToRecycleBinNotification>, INotificationAsyncHandler<ContentMovedToRecycleBinNotification>, INotificationHandler<MediaMovedNotification>, INotificationHandler<MediaMovedToRecycleBinNotification>, INotificationAsyncHandler<MediaMovedToRecycleBinNotification>, INotificationHandler

    Constructors

    View Source

    RelateOnTrashNotificationHandler(IRelationService, IEntityService, ILocalizedTextService, IAuditService, IScopeProvider, IBackOfficeSecurityAccessor)

    Declaration
    [Obsolete("Use the non-obsolete constructor instead. Scheduled for removal in V19.")]
    public RelateOnTrashNotificationHandler(IRelationService relationService, IEntityService entityService, ILocalizedTextService textService, IAuditService auditService, IScopeProvider scopeProvider, IBackOfficeSecurityAccessor backOfficeSecurityAccessor)
    Parameters
    Type Name Description
    IRelationService relationService
    IEntityService entityService
    ILocalizedTextService textService
    IAuditService auditService
    IScopeProvider scopeProvider
    IBackOfficeSecurityAccessor backOfficeSecurityAccessor
    View Source

    RelateOnTrashNotificationHandler(IRelationService, IEntityService, ILocalizedTextService, IAuditService, IScopeProvider, IBackOfficeSecurityAccessor, IUserIdKeyResolver)

    Declaration
    public RelateOnTrashNotificationHandler(IRelationService relationService, IEntityService entityService, ILocalizedTextService textService, IAuditService auditService, IScopeProvider scopeProvider, IBackOfficeSecurityAccessor backOfficeSecurityAccessor, IUserIdKeyResolver userIdKeyResolver)
    Parameters
    Type Name Description
    IRelationService relationService
    IEntityService entityService
    ILocalizedTextService textService
    IAuditService auditService
    IScopeProvider scopeProvider
    IBackOfficeSecurityAccessor backOfficeSecurityAccessor
    IUserIdKeyResolver userIdKeyResolver

    Methods

    View Source

    Handle(ContentMovedNotification)

    Handles a notification.

    Declaration
    public void Handle(ContentMovedNotification notification)
    Parameters
    Type Name Description
    ContentMovedNotification notification

    The notification.

    View Source

    Handle(ContentMovedToRecycleBinNotification)

    Handles a notification.

    Declaration
    [Obsolete("Use the INotificationAsyncHandler.HandleAsync implementation instead. Scheduled for removal in V19.")]
    public void Handle(ContentMovedToRecycleBinNotification notification)
    Parameters
    Type Name Description
    ContentMovedToRecycleBinNotification notification

    The notification.

    View Source

    Handle(MediaMovedNotification)

    Handles a notification.

    Declaration
    public void Handle(MediaMovedNotification notification)
    Parameters
    Type Name Description
    MediaMovedNotification notification

    The notification.

    View Source

    Handle(MediaMovedToRecycleBinNotification)

    Handles a notification.

    Declaration
    [Obsolete("Use the INotificationAsyncHandler.HandleAsync implementation instead. Scheduled for removal in V19.")]
    public void Handle(MediaMovedToRecycleBinNotification notification)
    Parameters
    Type Name Description
    MediaMovedToRecycleBinNotification notification

    The notification.

    View Source

    HandleAsync(ContentMovedToRecycleBinNotification, CancellationToken)

    Handles a notification.

    Declaration
    public Task HandleAsync(ContentMovedToRecycleBinNotification notification, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    ContentMovedToRecycleBinNotification notification

    The notification.

    CancellationToken cancellationToken

    The cancellation token.

    Returns
    Type Description
    Task

    A System.Threading.Tasks.Task representing the asynchronous operation.

    View Source

    HandleAsync(MediaMovedToRecycleBinNotification, CancellationToken)

    Handles a notification.

    Declaration
    public Task HandleAsync(MediaMovedToRecycleBinNotification notification, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    MediaMovedToRecycleBinNotification notification

    The notification.

    CancellationToken cancellationToken

    The cancellation token.

    Returns
    Type Description
    Task

    A System.Threading.Tasks.Task representing the asynchronous operation.

    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX