![]() | ReceiveActor.ReceiveAsync Method |
Name | Description | |
---|---|---|
![]() | ReceiveAsync<T>(Func<T, Task>, Predicate<T>) |
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.
![]() The actor will be suspended until the task returned by handler completes. ![]() This method may only be called when constructing the actor or from Become(Action) or BecomeStacked(Action). ![]() Note that handlers registered prior to this may have handled the message already.
In that case, this handler will not be invoked. |
![]() | ReceiveAsync<T>(Predicate<T>, Func<T, 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.
![]() The actor will be suspended until the task returned by handler completes. ![]() This method may only be called when constructing the actor or from Become(Action) or BecomeStacked(Action). ![]() Note that handlers registered prior to this may have handled the message already.
In that case, this handler will not be invoked. |
![]() | ReceiveAsync(Type, Func<Object, Task>, Predicate<Object>) |
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.
![]() The actor will be suspended until the task returned by handler completes. ![]() This method may only be called when constructing the actor or from Become(Action) or BecomeStacked(Action). ![]() Note that handlers registered prior to this may have handled the message already.
In that case, this handler will not be invoked. |
![]() | ReceiveAsync(Type, Predicate<Object>, Func<Object, 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.
![]() The actor will be suspended until the task returned by handler completes. ![]() This method may only be called when constructing the actor or from Become(Action) or BecomeStacked(Action). ![]() Note that handlers registered prior to this may have handled the message already.
In that case, this handler will not be invoked. |