From e308e2804ff0856bbf9f4a77647a6218ab9f2d6c Mon Sep 17 00:00:00 2001 From: Aaron Stannard Date: Thu, 6 Oct 2022 13:31:55 -0500 Subject: [PATCH] Make `Envelope` a reference type again (#6137) * convert `Envelope` back into a reference type * approved API changes * changed to `readonly struct` * fixed API approvals --- src/core/Akka/Actor/Message.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/Akka/Actor/Message.cs b/src/core/Akka/Actor/Message.cs index 2a315e5fada..f0983641073 100644 --- a/src/core/Akka/Actor/Message.cs +++ b/src/core/Akka/Actor/Message.cs @@ -12,7 +12,7 @@ namespace Akka.Actor /// /// Envelope class, represents a message and the sender of the message. /// - public struct Envelope + public readonly struct Envelope { /// /// Initializes a new instance of the struct. @@ -44,13 +44,13 @@ public Envelope(object message, IActorRef sender) /// Gets or sets the sender. /// /// The sender. - public IActorRef Sender { get; private set; } + public IActorRef Sender { get; } /// /// Gets or sets the message. /// /// The message. - public object Message { get; private set; } + public object Message { get; } /// /// Converts the to a string representation.