Table of Contents

Class StringMessageBody

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

Constructors

StringMessageBody(string)

public StringMessageBody(string body)

Parameters

body string

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