Click or drag to resize
Akka.NETReceiveActorReceiveAny Method
Registers a handler for incoming messages of any type.
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.

Namespace:  Akka.Actor
Assembly:  Akka (in Akka.dll) Version: 1.2.3.129 (1.2.3.129)
Syntax
protected void ReceiveAny(
	Action<Object> handler
)

Parameters

handler
Type: SystemActionObject
The message handler that is invoked for all
Exceptions
ExceptionCondition
InvalidOperationExceptionThis exception is thrown if this method is called outside of the actor's constructor or from Become(Action).
See Also