Compartir a través de


ObserverManager<TIdentity,TObserver>.Notify Método

Definición

Sobrecargas

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

Notifica a todos los observadores que coincidan con el proporcionado predicate.

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

Notifica a todos los observadores.

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

Notifica a todos los observadores que coincidan con el proporcionado 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)

Parámetros

notification
Action<TObserver>

Delegado de notificación al que se llamará en cada observador.

predicate
Func<TObserver,Boolean>

Predicado utilizado para seleccionar observadores a los que se va a notificar.

Se aplica a

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

Notifica a todos los observadores.

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

Parámetros

notification
Func<TObserver,Task>

Delegado de notificación al que se llamará en cada observador.

predicate
Func<TObserver,Boolean>

Predicado utilizado para seleccionar observadores a los que se va a notificar.

Devoluciones

que Task representa el trabajo realizado.

Se aplica a