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