Adds a handler that is called if the item being matched is of type
handlesType.
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(
Type handlesType,
Func<TItem, bool> handler
)
Public Sub Match ( _
handlesType As Type, _
handler As Func(Of TItem, Boolean) _
)
public:
void Match(
Type^ handlesType,
Func<TItem, bool^>^ handler
)
Parameters
- handlesType
- Type: Type
The type that it must match in order for handler to be called.
- handler
- Type: Func<(Of <(<'TItem, Boolean>)>)>
The handler that is invoked. It should return true if the item sent in matched and was handled.