Skip to content

Commit

Permalink
Update Message.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
ArjunVachhani committed May 15, 2024
1 parent 4959565 commit dee034d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions OrderMatcher/OrderMatcher.Types/Message.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,17 @@ namespace OrderMatcher.Types
public readonly struct Message
{
private readonly MessageType _type;
private readonly ReadOnlyMemory<byte> _body;
private readonly object _object;
private readonly ulong _deliveryTag;

public Message(MessageType type, ReadOnlyMemory<byte> body, object obj, ulong deliveryTag)
public Message(MessageType type, object obj, ulong deliveryTag)
{
_type = type;
_body = body;
_object = obj;
_deliveryTag = deliveryTag;
}

public MessageType MessageType => _type;
public ReadOnlyMemory<byte> Bytes => _body;
public object Object => _object;
public ulong DeliveryTag => _deliveryTag;
}
Expand Down

0 comments on commit dee034d

Please sign in to comment.