Table of Contents

Class RawMessage<T>

Namespace
Silverback.Messaging.Messages
Assembly
Silverback.Integration.dll

Wraps a raw message Stream.

public sealed class RawMessage<T> : RawMessage

Type Parameters

T

The type discriminator.

Inheritance
RawMessage<T>
Inherited Members

Constructors

RawMessage(Stream?)

Wraps a raw message Stream.

public RawMessage(Stream? content)

Parameters

content Stream

Methods

FromByteArray(byte[]?)

Creates a new RawMessage<T> instance from the specified content.

public static RawMessage<T> FromByteArray(byte[]? content)

Parameters

content byte[]

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

content Stream

The 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

content byte[]

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

content Stream

The message content.

Returns

RawMessage<T>

A RawMessage<T> wrapping the specified content.