Skip to content

Commit

Permalink
Make Envelope a reference type again (#6137)
Browse files Browse the repository at this point in the history
* convert `Envelope` back into a reference type

* approved API changes

* changed to `readonly struct`

* fixed API approvals
  • Loading branch information
Aaronontheweb authored Oct 6, 2022
1 parent bf273d9 commit a2b27a7
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit a2b27a7

Please sign in to comment.