Table of Contents

Class RawMessageSerializer

Namespace
Silverback.Messaging.Serialization
Assembly
Silverback.Integration.dll

This serializer just passed the RawMessage raw content to the producer.

public sealed class RawMessageSerializer : IMessageSerializer, IEquatable<RawMessageSerializer>
Inheritance
RawMessageSerializer
Implements
Inherited Members

Constructors

RawMessageSerializer()

public RawMessageSerializer()

Methods

Equals(RawMessageSerializer?)

public bool Equals(RawMessageSerializer? other)

Parameters

other RawMessageSerializer

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

SerializeAsync(object?, MessageHeaderCollection, ProducerEndpoint)

Serializes the specified message object into a byte array.

public ValueTask<Stream?> SerializeAsync(object? message, MessageHeaderCollection headers, ProducerEndpoint endpoint)

Parameters

message object

The message object to be serialized.

headers MessageHeaderCollection

The message headers collection.

endpoint ProducerEndpoint

The endpoint.

Returns

ValueTask<Stream>

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