Interface IScopedNotificationPublisher
Namespace: Umbraco.Cms.Core.Events
Assembly: Umbraco.Core.dll
Syntax
public interface IScopedNotificationPublisherMethods
View SourcePublish(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.
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 | 
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 | 
ScopeExit(Boolean)
Invokes publishing of all pending notifications within the current scope
Declaration
void ScopeExit(bool completed)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Boolean | completed | 
Suppress()
Suppresses all notifications from being added/created until the result object is disposed.
Declaration
IDisposable Suppress()Returns
| Type | Description | 
|---|---|
| IDisposable |