Click or drag to resize
Akka.NETReceiveActorReceive Method
Overload List
  NameDescription
Protected methodReceiveT(FuncT, Boolean)
Registers a handler for incoming messages of the specified type T. The handler should return true if it has handled the message. If the handler returns true no more handlers will be tried; otherwise the next registered handler will be tried.
Remarks
This method may only be called when constructing the actor or from Become(Action) or BecomeStacked(Action).
Remarks
Note that handlers registered prior to this may have handled the message already. In that case, this handler will not be invoked.
Protected methodReceive(Object)
TBD
(Inherited from UntypedActor.)
Protected methodReceiveT(ActionT, PredicateT)
Registers a handler for incoming messages of the specified type T. If shouldHandle!=null then it must return true before a message is passed to handler.
Remarks
This method may only be called when constructing the actor or from Become(Action) or BecomeStacked(Action).
Remarks
Note that handlers registered prior to this may have handled the message already. In that case, this handler will not be invoked.
Protected methodReceiveT(PredicateT, ActionT)
Registers a handler for incoming messages of the specified type T. If shouldHandle!=null then it must return true before a message is passed to handler.
Remarks
This method may only be called when constructing the actor or from Become(Action) or BecomeStacked(Action).
Remarks
Note that handlers registered prior to this may have handled the message already. In that case, this handler will not be invoked.
Protected methodReceive(Type, FuncObject, Boolean)
Registers a handler for incoming messages of the specified messageType. The handler should return true if it has handled the message. If the handler returns true no more handlers will be tried; otherwise the next registered handler will be tried.
Remarks
This method may only be called when constructing the actor or from Become(Action) or BecomeStacked(Action).
Remarks
Note that handlers registered prior to this may have handled the message already. In that case, this handler will not be invoked.
Protected methodReceive(Type, ActionObject, PredicateObject)
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
This method may only be called when constructing the actor or from Become(Action) or BecomeStacked(Action).
Remarks
Note that handlers registered prior to this may have handled the message already. In that case, this handler will not be invoked.
Protected methodReceive(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
This method may only be called when constructing the actor or from Become(Action) or BecomeStacked(Action).
Remarks
Note that handlers registered prior to this may have handled the message already. In that case, this handler will not be invoked.
Top
See Also