Class ActorSelectionMessage
Used to deliver messages via ActorSelection.
Inherited Members
Namespace: Akka.Actor
Assembly: Akka.dll
Syntax
public class ActorSelectionMessage : IAutoReceivedMessage, IPossiblyHarmful, IWrappedMessage
Constructors
| Improve this Doc View SourceActorSelectionMessage(Object, SelectionPathElement[], Boolean)
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. |
Boolean | wildCardFanOut | TBD |
Properties
| Improve this Doc 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 |
---|---|
Boolean |
Methods
| Improve this Doc View SourceCopy(Object, SelectionPathElement[], Nullable<Boolean>)
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. |
Nullable<Boolean> | 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 |