ObserverManager<TIdentity,TObserver>.Notify Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Notify(Action<TObserver>, Func<TObserver,Boolean>) |
Notifies all observers which match the provided |
Notify(Func<TObserver,Task>, Func<TObserver,Boolean>) |
Notifies all observers. |
Notify(Action<TObserver>, Func<TObserver,Boolean>)
Notifies all observers which match the provided predicate
.
public void Notify (Action<TObserver> notification, Func<TObserver,bool> predicate = default);
member this.Notify : Action<'Observer> * Func<'Observer, bool> -> unit
Public Sub Notify (notification As Action(Of TObserver), Optional predicate As Func(Of TObserver, Boolean) = Nothing)
Parameters
- notification
- Action<TObserver>
The notification delegate to call on each observer.
Applies to
Notify(Func<TObserver,Task>, Func<TObserver,Boolean>)
Notifies all observers.
public System.Threading.Tasks.Task Notify (Func<TObserver,System.Threading.Tasks.Task> notification, Func<TObserver,bool> predicate = default);
member this.Notify : Func<'Observer, System.Threading.Tasks.Task> * Func<'Observer, bool> -> System.Threading.Tasks.Task
Public Function Notify (notification As Func(Of TObserver, Task), Optional predicate As Func(Of TObserver, Boolean) = Nothing) As Task
Parameters
Returns
A Task representing the work performed.