Edit

Share via


ObserverManager<TIdentity,TObserver>.Notify Method

Definition

Overloads

Notify(Action<TObserver>, Func<TObserver,Boolean>)

Notifies all observers which match the provided predicate.

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.

predicate
Func<TObserver,Boolean>

The predicate used to select observers to notify.

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

notification
Func<TObserver,Task>

The notification delegate to call on each observer.

predicate
Func<TObserver,Boolean>

The predicate used to select observers to notify.

Returns

A Task representing the work performed.

Applies to