Class RawMessageSerializer
This serializer just passed the RawMessage raw content to the producer.
Inherited Members
Namespace: Silverback.Messaging.Serialization
Assembly: Silverback.Integration.dll
Syntax
public sealed class RawMessageSerializer : IMessageSerializer, IEquatable<RawMessageSerializer>
Constructors
RawMessageSerializer()
This serializer just passed the RawMessage raw content to the producer.
Declaration
public RawMessageSerializer()
Methods
Equals(RawMessageSerializer?)
This serializer just passed the RawMessage raw content to the producer.
Declaration
public bool Equals(RawMessageSerializer? other)
Parameters
| Type | Name | Description |
|---|---|---|
| RawMessageSerializer | other |
Returns
| Type | Description |
|---|---|
| bool |
Equals(object?)
This serializer just passed the RawMessage raw content to the producer.
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
GetHashCode()
This serializer just passed the RawMessage raw content to the producer.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int |
Overrides
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. |