Class ActorSelectionMessage
Used to deliver messages via ActorSelection.
Inherited Members
Namespace: Akka.Actor
Assembly: Akka.dll
Syntax
public class ActorSelectionMessage : IAutoReceivedMessage, IPossiblyHarmful, IWrappedMessage
Constructors
| Edit this page View SourceActorSelectionMessage(object, SelectionPathElement[], bool)
Initializes a new instance of the ActorSelectionMessage class.
Declaration
public ActorSelectionMessage(object message, SelectionPathElement[] elements, bool wildCardFanOut = false)
Parameters
| Type | Name | Description |
|---|---|---|
| object | message | The message. |
| SelectionPathElement[] | elements | The elements. |
| bool | wildCardFanOut | Whether the selection is a result of a wildcard fan-out operation. |
Properties
| Edit this page View SourceElements
The elements, e.g. "foo/bar/baz".
Declaration
public SelectionPathElement[] Elements { get; }
Property Value
| Type | Description |
|---|---|
| SelectionPathElement[] |
Message
The message that should be delivered to this ActorSelection.
Declaration
public object Message { get; }
Property Value
| Type | Description |
|---|---|
| object |
WildCardFanOut
When true, indicates that this ActorSelection includes wildcards.
Declaration
public bool WildCardFanOut { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
| Edit this page View SourceCopy(object, SelectionPathElement[], bool?)
Creates a deep copy of the ActorSelectionMessage with the provided properties.
Declaration
public ActorSelectionMessage Copy(object message = null, SelectionPathElement[] elements = null, bool? wildCardFanOut = null)
Parameters
| Type | Name | Description |
|---|---|---|
| object | message | Optional. The new message to deliver. |
| SelectionPathElement[] | elements | Optional. The new elements on the actor selection. |
| bool? | wildCardFanOut | Optional. Indicates whether or not we're delivering a wildcard ActorSelection. |
Returns
| Type | Description |
|---|---|
| ActorSelectionMessage | A new ActorSelectionMessage. |
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string |
Edit this page