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
GetString()
Return the message body as a string
public string GetString()