Skip to content

Commit c6cc055

Browse files
committed
bytes
1 parent 505a9ef commit c6cc055

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/Sentry/ByteAttachmentContent.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,16 @@ namespace Sentry;
55
/// </summary>
66
public class ByteAttachmentContent : IAttachmentContent
77
{
8-
private readonly byte[] _bytes;
8+
/// <summary>
9+
/// The raw bytes of the attachment.
10+
/// </summary>
11+
public byte[] Bytes { get; }
912

1013
/// <summary>
1114
/// Creates a new instance of <see cref="ByteAttachmentContent"/>.
1215
/// </summary>
13-
public ByteAttachmentContent(byte[] bytes) => _bytes = bytes;
16+
public ByteAttachmentContent(byte[] bytes) => Bytes = bytes;
1417

1518
/// <inheritdoc />
16-
public Stream GetStream() => new MemoryStream(_bytes);
19+
public Stream GetStream() => new MemoryStream(Bytes);
1720
}

0 commit comments

Comments
 (0)