Class UntypedActor
Class UntypedActor.
Inheritance
UntypedActor
Implements
Inherited Members
Namespace: Akka.Actor
Assembly: Akka.dll
Syntax
public abstract class UntypedActor : ActorBase, IInternalActor
Properties
| Edit this page View SourceContext
TBD
Declaration
protected static IUntypedActorContext Context { get; }
Property Value
Type | Description |
---|---|
IUntypedActorContext |
Methods
| Edit this page View SourceBecome(UntypedReceive)
Changes the actor's behavior and replaces the current receive handler with the specified handler.
Declaration
protected void Become(UntypedReceive receive)
Parameters
Type | Name | Description |
---|---|---|
UntypedReceive | receive | The new message handler. |
BecomeStacked(UntypedReceive)
Changes the actor's behavior and replaces the current receive handler with the specified handler.
The current handler is stored on a stack, and you can revert to it by calling UnbecomeStacked()
Declaration
protected void BecomeStacked(UntypedReceive receive)
Parameters
Type | Name | Description |
---|---|---|
UntypedReceive | receive | The new message handler. |
OnReceive(object)
To be implemented by concrete UntypedActor, this defines the behavior of the UntypedActor. This method is called for every message received by the actor.
Declaration
protected abstract void OnReceive(object message)
Parameters
Type | Name | Description |
---|---|---|
object | message | The message. |
Receive(object)
TBD
Declaration
protected override sealed bool Receive(object message)
Parameters
Type | Name | Description |
---|---|---|
object | message | TBD |
Returns
Type | Description |
---|---|
bool | TBD |
Overrides
| Edit this page View SourceRunTask(Action)
TBD
Declaration
protected void RunTask(Action action)
Parameters
Type | Name | Description |
---|---|---|
Action | action | TBD |
RunTask(Func<Task>)
TBD
Declaration
protected void RunTask(Func<Task> action)
Parameters
Type | Name | Description |
---|---|---|
Func<Task> | action | TBD |