Class RawMessage<T>
- Namespace
- Silverback.Messaging.Messages
- Assembly
- Silverback.Integration.dll
Wraps a raw message Stream.
public sealed class RawMessage<T> : RawMessage
Type Parameters
TThe type discriminator.
- Inheritance
-
RawMessage<T>
- Inherited Members
Constructors
RawMessage(Stream?)
Wraps a raw message Stream.
public RawMessage(Stream? content)
Parameters
contentStream
Methods
FromByteArray(byte[]?)
Creates a new RawMessage<T> instance from the specified content.
public static RawMessage<T> FromByteArray(byte[]? content)
Parameters
contentbyte[]The message content.
Returns
- RawMessage<T>
A RawMessage wrapping the specified content.
FromStream(Stream?)
Creates a new RawMessage<T> instance from the specified content.
public static RawMessage<T> FromStream(Stream? content)
Parameters
contentStreamThe message content.
Returns
- RawMessage<T>
A RawMessage wrapping the specified content.
Operators
implicit operator RawMessage<T>(byte[]?)
Implicitly converts a byte array to a RawMessage<T>.
public static implicit operator RawMessage<T>(byte[]? content)
Parameters
contentbyte[]The message content.
Returns
- RawMessage<T>
A RawMessage<T> wrapping the specified content.
implicit operator RawMessage<T>(Stream?)
Implicitly converts a Streams to a RawMessage<T>.
public static implicit operator RawMessage<T>(Stream? content)
Parameters
contentStreamThe message content.
Returns
- RawMessage<T>
A RawMessage<T> wrapping the specified content.