diff --git a/src/core/Akka/Actor/Message.cs b/src/core/Akka/Actor/Message.cs index 2099133db87..b7ab5482435 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.