Click or drag to resize
Akka.NETActorMessage Methods

The ActorsActorMessage generic type exposes the following members.

Methods
  NameDescription
Public methodActorOf
Create new actor as child of this context with the given name, which must not start with "$". If the given name is already in use, and InvalidActorNameException is thrown. See Props for details on how to obtain a Props object.
(Inherited from IActorRefFactory.)
Public methodActorSelection(String)
Construct an ActorSelection from the given path, which is parsed for wildcards (these are replaced by regular expressions internally). No attempt is made to verify the existence of any part of the supplied path, it is recommended to send a message and gather the replies in order to resolve the matching set of actors.
(Inherited from IActorRefFactory.)
Public methodActorSelection(ActorPath)
Construct an ActorSelection from the given path, which is parsed for wildcards (these are replaced by regular expressions internally). No attempt is made to verify the existence of any part of the supplied path, it is recommended to send a message and gather the replies in order to resolve the matching set of actors.
(Inherited from IActorRefFactory.)
Public methodDefer
Defers provided function to be invoked when actor stops, regardless of reasons.
Public methodReceive
Explicitly retrieves next incoming message from the mailbox.
Public methodSender
Returns a sender of current message or [ActorRefs.NoSender], if none could be determined.
Public methodStash
Stashes the current message (the message that the actor received last)
Public methodUnhandled
Explicit signalization of unhandled message.
Public methodUnstash
Unstash the oldest message in the stash and prepends it to the actor's mailbox. The message is removed from the stash.
Public methodUnstashAll
Unstashes all messages by prepending them to the actor's mailbox. The stash is guaranteed to be empty afterwards.
Public methodUnwatch
Stops monitoring the subject for termination.
(Inherited from ICanWatch.)
Public methodWatch
Monitors the specified actor for termination. When the subject terminates the instance watching will receive a Terminated message.
Remarks
Note that if the Terminated message isn't handled by the actor, by default the actor will crash by throwing a DeathPactException. To change the default behavior, override Unhandled(Object).
(Inherited from ICanWatch.)
Top
Extension Methods
  NameDescription
Public Extension MethodActorOf(ActionIActorDsl, String)Overloaded.
TBD
(Defined by ActExtensions.)
Public Extension MethodActorOf(ActionIActorDsl, IActorContext, String)Overloaded.
TBD
(Defined by ActExtensions.)
Public Extension MethodActorOfTActor(String)Overloaded.
TBD
(Defined by ActorRefFactoryExtensions.)
Public Extension MethodActorSelection
Construct an ActorSelection from the given string representing a path relative to the given target. This operation has to create all the matching magic, so it is preferable to cache its result if the intention is to send messages frequently.
(Defined by ActorRefFactoryExtensions.)
Public Extension MethodMaterializer

Creates a ActorMaterializer which will execute every step of a transformation pipeline within its own ActorBase. The required IActorRefFactory (which can be either an ActorSystem or an IActorContext) will be used to create one actor that in turn creates actors for the transformation steps.

The materializer's ActorMaterializerSettings will be obtained from the configuration of the context's underlying ActorSystem.

The namePrefix is used as the first part of the names of the actors running the processing steps. The default namePrefix is "flow". The actor names are built up of namePrefix-flowNumber-flowStepNumber-stepName.

(Defined by ActorMaterializerExtensions.)
Top
See Also