Class BinaryMessage
- Namespace
- Silverback.Messaging.Messages
- Assembly
- Silverback.Integration.dll
A binary message that is being transferred over the message broker without serializing and deserializing it.
public class BinaryMessage : IBinaryMessage
- Inheritance
-
BinaryMessage
- Implements
- Inherited Members
Constructors
BinaryMessage()
Initializes a new instance of the BinaryMessage class.
public BinaryMessage()
BinaryMessage(byte[], string)
Initializes a new instance of the BinaryMessage class with the specified content.
public BinaryMessage(byte[] content, string contentType = "application/octet-stream")
Parameters
BinaryMessage(Stream?, string)
Initializes a new instance of the BinaryMessage class with the specified content.
public BinaryMessage(Stream? content, string contentType = "application/octet-stream")
Parameters
Properties
Content
Gets or sets the binary content.
public Stream? Content { get; set; }
Property Value
ContentType
Gets or sets the MIME type of the file.
[Header("content-type")]
public string ContentType { get; set; }