Skip to content

Commit 4bab95a

Browse files
Pass through ROM directly (#798)
Co-authored-by: Daniel Marbach <danielmarbach@users.noreply.github.com>
1 parent a67d77e commit 4bab95a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/NServiceBus.Storage.MongoDB/Outbox/StorageTransportOperation.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace NServiceBus.Storage.MongoDB;
44

5+
using System;
56
using System.Collections.Generic;
67

78
class StorageTransportOperation
@@ -14,13 +15,13 @@ public StorageTransportOperation(Outbox.TransportOperation source)
1415
{
1516
MessageId = source.MessageId;
1617
Options = source.Options != null ? new Dictionary<string, string>(source.Options) : [];
17-
Body = source.Body.ToArray();
18+
Body = source.Body;
1819
Headers = source.Headers;
1920
}
2021

2122
public string MessageId { get; set; }
2223
public Dictionary<string, string> Options { get; set; }
23-
public byte[] Body { get; set; }
24+
public ReadOnlyMemory<byte> Body { get; set; }
2425
public Dictionary<string, string> Headers { get; set; }
2526

2627

0 commit comments

Comments
 (0)