Table of Contents

Class BytesMessageBody

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

Constructors

BytesMessageBody(byte[]?)

public BytesMessageBody(byte[]? bytes)

Parameters

bytes 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