次の方法で共有


ObserverManager<TIdentity,TObserver>.Notify メソッド

定義

オーバーロード

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

指定 predicateされた と一致するすべてのオブザーバーに通知します。

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

すべてのオブザーバーに通知します。

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

指定 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)

パラメーター

notification
Action<TObserver>

各オブザーバーで呼び出す通知デリゲート。

predicate
Func<TObserver,Boolean>

通知するオブザーバーの選択に使用される述語。

適用対象

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

すべてのオブザーバーに通知します。

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

パラメーター

notification
Func<TObserver,Task>

各オブザーバーで呼び出す通知デリゲート。

predicate
Func<TObserver,Boolean>

通知するオブザーバーの選択に使用される述語。

戻り値

Task実行された作業を表す 。

適用対象