 | ReceiveActorReceive Method (Type, PredicateObject, ActionObject) |
Registers a handler for incoming messages of the specified
messageType.
If
shouldHandle!=
null then it must return true before a message is passed to
handler.
Remarks
RemarksNote that handlers registered prior to this may have handled the message already.
In that case, this handler will not be invoked.
Namespace:
Akka.Actor
Assembly:
Akka (in Akka.dll) Version: 1.2.3.129 (1.2.3.129)
Syntaxprotected void Receive(
Type messageType,
Predicate<Object> shouldHandle,
Action<Object> handler
)
member Receive :
messageType : Type *
shouldHandle : Predicate<Object> *
handler : Action<Object> -> unit
Parameters
- messageType
- Type: SystemType
The type of the message - shouldHandle
- Type: SystemPredicateObject
When not null it is used to determine if the message matches. - handler
- Type: SystemActionObject
The message handler that is invoked for incoming messages of the specified messageType
Exceptions
See Also