Skip to content

ObserverManager<TIdentity, TObserver>.Notify(Func<TObserver, Task>, Func<TObserver, bool>)

Notify(Func<TObserver, Task>, Func<TObserver, bool>)

View source
public Task ObserverManager<TIdentity, Notify(Func<TObserver, Task> notification, Func<TObserver, bool>? predicate = null)
Notifies all observers.

Parameters

notificationFunc<TObserver, Task>
The notification delegate to call on each observer.
predicateFunc<TObserver, bool>
The predicate used to select observers to notify.

Returns

A System.Threading.Tasks.Task representing the work performed.