Show / Hide Table of Contents

    Class RawMessageDeserializer<T>

    Wraps the received message into a RawMessage.

    Inheritance
    object
    RawMessageDeserializer<T>
    Implements
    IMessageDeserializer
    IEquatable<RawMessageDeserializer<T>>
    Inherited Members
    object.GetType()
    object.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: Silverback.Messaging.Serialization
    Assembly: Silverback.Integration.dll
    Syntax
    public sealed class RawMessageDeserializer<T> : IMessageDeserializer, IEquatable<RawMessageDeserializer<T>> where T : RawMessage
    Type Parameters
    Name Description
    T

    The type discriminator.

    Constructors

    RawMessageDeserializer()

    Wraps the received message into a RawMessage.

    Declaration
    public RawMessageDeserializer()

    Properties

    RequireHeaders

    Gets a value indicating whether this serializer (with the current configuration) needs the headers support to work properly.

    Declaration
    public bool RequireHeaders { get; }
    Property Value
    Type Description
    bool

    Methods

    DeserializeAsync(Stream?, MessageHeaderCollection, ConsumerEndpoint)

    Deserializes the byte array into a message object.

    Declaration
    public ValueTask<DeserializedMessage> DeserializeAsync(Stream? messageStream, MessageHeaderCollection headers, ConsumerEndpoint endpoint)
    Parameters
    Type Name Description
    Stream messageStream

    The Stream containing the message to be deserialized.

    MessageHeaderCollection headers

    The message headers collection.

    ConsumerEndpoint endpoint

    The endpoint.

    Returns
    Type Description
    ValueTask<DeserializedMessage>

    A ValueTask<TResult> representing the asynchronous operation. The task result contains the deserialized message (or null when the input is null or empty) and the type of the message.

    Equals(RawMessageDeserializer<T>?)

    Wraps the received message into a RawMessage.

    Declaration
    public bool Equals(RawMessageDeserializer<T>? other)
    Parameters
    Type Name Description
    RawMessageDeserializer<T> other
    Returns
    Type Description
    bool

    Equals(object?)

    Wraps the received message into a RawMessage.

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

    GetCompatibleSerializer()

    Gets a new IMessageSerializer compatible with this deserializer.

    Declaration
    public IMessageSerializer GetCompatibleSerializer()
    Returns
    Type Description
    IMessageSerializer

    A new instance of an IMessageSerializer compatible with this deserializer.

    GetHashCode()

    Wraps the received message into a RawMessage.

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

    Implements

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