Class BinaryMessageSerializer
Handles the IBinaryMessage. It's not really a serializer, since the raw binary content is transmitted as-is.
Inherited Members
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
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
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. |