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 SourceRelateOnTrashNotificationHandler(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 |
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 SourceHandle(ContentMovedNotification)
Handles a notification.
Declaration
public void Handle(ContentMovedNotification notification)
Parameters
| Type | Name | Description |
|---|---|---|
| ContentMovedNotification | notification | The notification. |
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. |
Handle(MediaMovedNotification)
Handles a notification.
Declaration
public void Handle(MediaMovedNotification notification)
Parameters
| Type | Name | Description |
|---|---|---|
| MediaMovedNotification | notification | The notification. |
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. |
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. |
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. |