Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Envelope a reference type again #6137

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/core/Akka/Actor/Message.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ namespace Akka.Actor
/// <summary>
/// Envelope class, represents a message and the sender of the message.
/// </summary>
public struct Envelope
public readonly struct Envelope
{
/// <summary>
/// Initializes a new instance of the <see cref="Envelope"/> struct.
Expand Down Expand Up @@ -44,13 +44,13 @@ public Envelope(object message, IActorRef sender)
/// Gets or sets the sender.
/// </summary>
/// <value>The sender.</value>
public IActorRef Sender { get; private set; }
public IActorRef Sender { get; }

/// <summary>
/// Gets or sets the message.
/// </summary>
/// <value>The message.</value>
public object Message { get; private set; }
public object Message { get; }

/// <summary>
/// Converts the <see cref="Envelope"/> to a string representation.
Expand Down