Struct Envelope
Envelope class, represents a message and the sender of the message.
Inherited Members
Namespace: Akka.Actor
Assembly: Akka.dll
Syntax
public readonly struct Envelope
Constructors
| Improve this Doc View SourceEnvelope(Object, IActorRef)
Initializes a new instance of the Envelope struct.
Declaration
public Envelope(object message, IActorRef sender)
Parameters
Type | Name | Description |
---|---|---|
Object | message | The message being sent. |
IActorRef | sender | The actor who sent the message. |
Envelope(Object, IActorRef, ActorSystem)
Initializes a new instance of the Envelope struct.
Declaration
public Envelope(object message, IActorRef sender, ActorSystem system)
Parameters
Type | Name | Description |
---|---|---|
Object | message | The message being sent. |
IActorRef | sender | The actor who sent the message. |
ActorSystem | system | The current actor system. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | This exception is thrown if the given |
Properties
| Improve this Doc View SourceMessage
Gets or sets the message.
Declaration
public readonly object Message { get; }
Property Value
Type | Description |
---|---|
Object | The message. |
Sender
Gets or sets the sender.
Declaration
public readonly IActorRef Sender { get; }
Property Value
Type | Description |
---|---|
IActorRef | The sender. |
Methods
| Improve this Doc View SourceToString()
Converts the Envelope to a string representation.
Declaration
public override readonly string ToString()
Returns
Type | Description |
---|---|
String | A string. |