Show / Hide Table of Contents

    Class RawMessage<T>

    Wraps a raw message Stream.

    Inheritance
    object
    RawMessage
    RawMessage<T>
    Inherited Members
    RawMessage.ToStream()
    RawMessage.ToByteArray()
    RawMessage.ToByteArrayAsync()
    RawMessage.Content
    object.GetType()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    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.

    GitHub E-Mail
    ↑ Back to top © 2026 Sergio Aquilini