Table of Contents

Class ArrayMessageBody

Namespace
MassTransit
Assembly
MassTransit.Abstractions.dll
public class ArrayMessageBody : MessageBody
Inheritance
ArrayMessageBody
Implements
Inherited Members

Constructors

ArrayMessageBody(ArraySegment<byte>)

public ArrayMessageBody(ArraySegment<byte> bytes)

Parameters

bytes ArraySegment<byte>

Properties

Length

public long? Length { get; }

Property Value

long?

Methods

GetBytes()

Return the message body as a byte array

public byte[] GetBytes()

Returns

byte[]

GetStream()

Return the message body as a stream

public Stream GetStream()

Returns

Stream

GetString()

Return the message body as a string

public string GetString()

Returns

string