Adds a handler that is called if the item being matched is of type
T.
The handler should return
true if the item sent in matched and was handled.
Note that if a previous added handler handled the item, this
handler will not be invoked.
Namespace:
Akka.Tools.MatchHandler
Assembly:
Akka (in Akka.dll)
public void Match<T>(
Func<T, bool> handler
)
where T : TItem, TItem
Public Sub Match(Of T As {TItem, TItem}) ( _
handler As Func(Of T, Boolean) _
)
public:
generic<typename T>
where T : TItem, TItem
void Match(
Func<T, bool^>^ handler
)
Type Parameters
- T
- The type that it must match in order for handler to be called.
Parameters
- handler
- Type: Func<(Of <(<'T, Boolean>)>)>
The handler that is invoked. It should return true if the item sent in matched and was handled.