View Source
Class ScopedNotificationPublisher<TNotificationHandler>
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public class ScopedNotificationPublisher<TNotificationHandler> : IScopedNotificationPublisher where TNotificationHandler : INotificationHandler
Type Parameters
| Name |
Description |
| TNotificationHandler |
|
Constructors
View Source
ScopedNotificationPublisher(IEventAggregator, Boolean)
Declaration
public ScopedNotificationPublisher(IEventAggregator eventAggregator, bool publishCancelableNotificationOnScopeExit = false)
Parameters
| Type |
Name |
Description |
| IEventAggregator |
eventAggregator |
|
| System.Boolean |
publishCancelableNotificationOnScopeExit |
|
Methods
View Source
Publish(INotification)
Declaration
public void Publish(INotification notification)
Parameters
View Source
PublishCancelable(ICancelableNotification)
Declaration
public bool PublishCancelable(ICancelableNotification notification)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
View Source
PublishCancelableAsync(ICancelableNotification)
Declaration
public async Task<bool> PublishCancelableAsync(ICancelableNotification notification)
Parameters
Returns
| Type |
Description |
| Task<System.Boolean> |
|
View Source
PublishScopedNotifications(IList<INotification>)
Declaration
protected virtual void PublishScopedNotifications(IList<INotification> notifications)
Parameters
View Source
ScopeExit(Boolean)
Declaration
public void ScopeExit(bool completed)
Parameters
| Type |
Name |
Description |
| System.Boolean |
completed |
|
View Source
Suppress()
Declaration
public IDisposable Suppress()
Returns
| Type |
Description |
| IDisposable |
|