C# Класс Akka.Actor.UntypedActor

Class UntypedActor.
Наследование: ActorBase
Показать файл Открыть проект

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
Become ( UntypedReceive receive, bool discardOld = true ) : void

Описание методов

Become() защищенный Метод

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.
Результат void

BecomeStacked() защищенный Метод

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.
Результат void

OnReceive() защищенный абстрактный Метод

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.
Результат void

Receive() защищенный закрытый Метод

protected final Receive ( object message ) : bool
message object
Результат bool

RunTask() защищенный Метод

protected RunTask ( System.Action action ) : void
action System.Action
Результат void

RunTask() защищенный Метод

protected RunTask ( Func action ) : void
action Func
Результат void