Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IScopedNotificationPublisher

    Namespace: Umbraco.Cms.Core.Events
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IScopedNotificationPublisher

    Methods

    View Source

    Publish(INotification)

    Publishes a notification to the notification subscribers

    Declaration
    void Publish(INotification notification)
    Parameters
    Type Name Description
    INotification notification
    Remarks

    The notification is published upon successful completion of the current scope, i.e. when things have been saved/published/deleted etc.

    View Source

    PublishCancelable(ICancelableNotification)

    Publishes a cancelable notification to the notification subscribers

    Declaration
    bool PublishCancelable(ICancelableNotification notification)
    Parameters
    Type Name Description
    ICancelableNotification notification
    Returns
    Type Description
    System.Boolean

    True if the notification was cancelled by a subscriber, false otherwise

    View Source

    PublishCancelableAsync(ICancelableNotification)

    Publishes a cancelable notification to the notification subscribers

    Declaration
    Task<bool> PublishCancelableAsync(ICancelableNotification notification)
    Parameters
    Type Name Description
    ICancelableNotification notification
    Returns
    Type Description
    Task<System.Boolean>

    True if the notification was cancelled by a subscriber, false otherwise

    View Source

    ScopeExit(Boolean)

    Invokes publishing of all pending notifications within the current scope

    Declaration
    void ScopeExit(bool completed)
    Parameters
    Type Name Description
    System.Boolean completed
    View Source

    Suppress()

    Suppresses all notifications from being added/created until the result object is disposed.

    Declaration
    IDisposable Suppress()
    Returns
    Type Description
    IDisposable
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX