Show / Hide Table of Contents

    Class BinaryMessage

    A binary message that is being transferred over the message broker without serializing and deserializing it.

    Inheritance
    object
    BinaryMessage
    Implements
    IBinaryMessage
    Inherited Members
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Silverback.Messaging.Messages
    Assembly: Silverback.Integration.dll
    Syntax
    public class BinaryMessage : IBinaryMessage

    Constructors

    BinaryMessage()

    Initializes a new instance of the BinaryMessage class.

    Declaration
    public BinaryMessage()

    BinaryMessage(byte[], string)

    Initializes a new instance of the BinaryMessage class with the specified content.

    Declaration
    public BinaryMessage(byte[] content, string contentType = "application/octet-stream")
    Parameters
    Type Name Description
    byte[] content

    The binary content.

    string contentType

    The optional MIME type.

    BinaryMessage(Stream?, string)

    Initializes a new instance of the BinaryMessage class with the specified content.

    Declaration
    public BinaryMessage(Stream? content, string contentType = "application/octet-stream")
    Parameters
    Type Name Description
    Stream content

    The binary content.

    string contentType

    The optional MIME type.

    Properties

    Content

    Gets or sets the binary content.

    Declaration
    public Stream? Content { get; set; }
    Property Value
    Type Description
    Stream

    ContentType

    Gets or sets the MIME type of the file.

    Declaration
    [Header("content-type")]
    public string ContentType { get; set; }
    Property Value
    Type Description
    string

    Implements

    IBinaryMessage
    GitHub E-Mail
    ↑ Back to top © 2026 Sergio Aquilini