C# Class Akka.Actor.UntypedActor

Class UntypedActor.
Inheritance: ActorBase
Mostra file Open project: rogeralsing/akka.net

Protected Methods

Method Description
Become ( UntypedReceive receive ) : void

Changes the actor's behavior and replaces the current receive handler with the specified handler.

BecomeStacked ( UntypedReceive receive ) : void

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 IUntypedActorContext.UnbecomeStacked Please note, that in order to not leak memory, make sure every call to BecomeStacked is matched with a call to IUntypedActorContext.UnbecomeStacked.

OnReceive ( object message ) : void

To be implemented by concrete UntypedActor, this defines the behavior of the UntypedActor. This method is called for every message received by the actor.

Receive ( object message ) : bool
RunTask ( System.Action action ) : void
RunTask ( Func action ) : void

Private Methods

Method Description
Become ( UntypedReceive receive, bool discardOld = true ) : void

Method Details

Become() protected method

Changes the actor's behavior and replaces the current receive handler with the specified handler.
protected Become ( UntypedReceive receive ) : void
receive UntypedReceive The new message handler.
return void

BecomeStacked() protected method

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 IUntypedActorContext.UnbecomeStacked Please note, that in order to not leak memory, make sure every call to BecomeStacked is matched with a call to IUntypedActorContext.UnbecomeStacked.
protected BecomeStacked ( UntypedReceive receive ) : void
receive UntypedReceive The new message handler.
return void

OnReceive() protected abstract method

To be implemented by concrete UntypedActor, this defines the behavior of the UntypedActor. This method is called for every message received by the actor.
protected abstract OnReceive ( object message ) : void
message object The message.
return void

Receive() protected final method

protected final Receive ( object message ) : bool
message object
return bool

RunTask() protected method

protected RunTask ( System.Action action ) : void
action System.Action
return void

RunTask() protected method

protected RunTask ( Func action ) : void
action Func
return void