C# Class Akka.Actor.UntypedActor

Class UntypedActor.
Inheritance: ActorBase
Afficher le fichier Open project: rogeralsing/akka.net

Méthodes protégées

Méthode 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

Méthode Description
Become ( UntypedReceive receive, bool discardOld = true ) : void

Method Details

Become() protected méthode

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.
Résultat void

BecomeStacked() protected méthode

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.
Résultat void

OnReceive() protected abstract méthode

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.
Résultat void

Receive() protected final méthode

protected final Receive ( object message ) : bool
message object
Résultat bool

RunTask() protected méthode

protected RunTask ( System.Action action ) : void
action System.Action
Résultat void

RunTask() protected méthode

protected RunTask ( Func action ) : void
action Func
Résultat void