Click or drag to resize
Akka.NETActReceiveAsync Method
Overload List
  NameDescription
Protected methodReceiveAsyncT(FuncT, Task, PredicateT)
Registers an asynchronous 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
The actor will be suspended until the task returned by handler completes.
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.
(Inherited from ReceiveActor.)
Protected methodReceiveAsyncT(PredicateT, FuncT, Task)
Registers an asynchronous 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
The actor will be suspended until the task returned by handler completes.
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.
(Inherited from ReceiveActor.)
Public methodReceiveAsyncT(PredicateT, FuncT, IActorContext, Task)
Registers an async handler for messages of the specified type T
Public methodReceiveAsyncT(FuncT, IActorContext, Task, PredicateT)
Registers an async handler for messages of the specified type T
Protected methodReceiveAsync(Type, FuncObject, Task, PredicateObject)
Registers an asynchronous handler for incoming messages of the specified messageType. If shouldHandle!=null then it must return true before a message is passed to handler.
Remarks
The actor will be suspended until the task returned by handler completes.
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.
(Inherited from ReceiveActor.)
Protected methodReceiveAsync(Type, PredicateObject, FuncObject, Task)
Registers an asynchronous handler for incoming messages of the specified messageType. If shouldHandle!=null then it must return true before a message is passed to handler.
Remarks
The actor will be suspended until the task returned by handler completes.
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.
(Inherited from ReceiveActor.)
Top
See Also