Search Results for

    Show / Hide Table of Contents

    Struct Envelope

    Envelope class, represents a message and the sender of the message.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Akka.Actor
    Assembly: Akka.dll
    Syntax
    public readonly struct Envelope

    Constructors

    | Edit this page View Source

    Envelope(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.

    | Edit this page View Source

    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 message is undefined.

    Properties

    | Edit this page View Source

    Message

    Gets or sets the message.

    Declaration
    public object Message { get; }
    Property Value
    Type Description
    object

    The message.

    | Edit this page View Source

    Sender

    Gets or sets the sender.

    Declaration
    public IActorRef Sender { get; }
    Property Value
    Type Description
    IActorRef

    The sender.

    Methods

    | Edit this page View Source

    ToString()

    Converts the Envelope to a string representation.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string.

    Overrides
    ValueType.ToString()

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET