Table of Contents

Class Base64MessageBody

Namespace
MassTransit
Assembly
MassTransit.Abstractions.dll

Converts a binary-only message body to Base64 so that it can be used with non-binary message transports. Only the GetString() method performs the conversion, GetBytes() and GetStream() are pass-through methods.

public class Base64MessageBody : MessageBody
Inheritance
Base64MessageBody
Implements
Inherited Members

Constructors

Base64MessageBody(string)

public Base64MessageBody(string text)

Parameters

text 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