Show / Hide Table of Contents

    Class BinaryMessageSerializer

    Handles the IBinaryMessage. It's not really a serializer, since the raw binary content is transmitted as-is.

    Inheritance
    object
    BinaryMessageSerializer
    Implements
    IMessageSerializer
    IEquatable<BinaryMessageSerializer>
    Inherited Members
    object.GetType()
    object.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: Silverback.Messaging.BinaryMessages
    Assembly: Silverback.Integration.dll
    Syntax
    public sealed class BinaryMessageSerializer : IMessageSerializer, IEquatable<BinaryMessageSerializer>

    Constructors

    BinaryMessageSerializer()

    Handles the IBinaryMessage. It's not really a serializer, since the raw binary content is transmitted as-is.

    Declaration
    public BinaryMessageSerializer()

    Methods

    Equals(BinaryMessageSerializer?)

    Handles the IBinaryMessage. It's not really a serializer, since the raw binary content is transmitted as-is.

    Declaration
    public bool Equals(BinaryMessageSerializer? other)
    Parameters
    Type Name Description
    BinaryMessageSerializer other
    Returns
    Type Description
    bool

    Equals(object?)

    Handles the IBinaryMessage. It's not really a serializer, since the raw binary content is transmitted as-is.

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    object.Equals(object)

    GetHashCode()

    Handles the IBinaryMessage. It's not really a serializer, since the raw binary content is transmitted as-is.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    object.GetHashCode()

    SerializeAsync(object?, MessageHeaderCollection, ProducerEndpoint)

    Serializes the specified message object into a byte array.

    Declaration
    public ValueTask<Stream?> SerializeAsync(object? message, MessageHeaderCollection headers, ProducerEndpoint endpoint)
    Parameters
    Type Name Description
    object message

    The message object to be serialized.

    MessageHeaderCollection headers

    The message headers collection.

    ProducerEndpoint endpoint

    The endpoint.

    Returns
    Type Description
    ValueTask<Stream>

    A Task<TResult> representing the asynchronous operation. The task result contains the Stream with the serialized message.

    Implements

    IMessageSerializer
    IEquatable<T>
    GitHub E-Mail
    ↑ Back to top © 2026 Sergio Aquilini