We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 505a9ef commit c6cc055Copy full SHA for c6cc055
src/Sentry/ByteAttachmentContent.cs
@@ -5,13 +5,16 @@ namespace Sentry;
5
/// </summary>
6
public class ByteAttachmentContent : IAttachmentContent
7
{
8
- private readonly byte[] _bytes;
+ /// <summary>
9
+ /// The raw bytes of the attachment.
10
+ /// </summary>
11
+ public byte[] Bytes { get; }
12
13
/// <summary>
14
/// Creates a new instance of <see cref="ByteAttachmentContent"/>.
15
- public ByteAttachmentContent(byte[] bytes) => _bytes = bytes;
16
+ public ByteAttachmentContent(byte[] bytes) => Bytes = bytes;
17
18
/// <inheritdoc />
- public Stream GetStream() => new MemoryStream(_bytes);
19
+ public Stream GetStream() => new MemoryStream(Bytes);
20
}
0 commit comments