ActReceiveAsync Method |
Name | Description | |
---|---|---|
ReceiveAsyncT(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.
(Inherited from ReceiveActor.)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. | |
ReceiveAsyncT(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.
(Inherited from ReceiveActor.)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. | |
ReceiveAsyncT(PredicateT, FuncT, IActorContext, Task) |
Registers an async handler for messages of the specified type T | |
ReceiveAsyncT(FuncT, IActorContext, Task, PredicateT) |
Registers an async handler for messages of the specified type T | |
ReceiveAsync(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.
(Inherited from ReceiveActor.)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. | |
ReceiveAsync(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.
(Inherited from ReceiveActor.)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. |