Interface IMessageSerializer
- Namespace
- MassTransit
- Assembly
- MassTransit.Abstractions.dll
A message serializer is responsible for serializing a message. Shocking, I know.
public interface IMessageSerializer
Properties
ContentType
ContentType ContentType { get; }
Property Value
Methods
GetMessageBody<T>(SendContext<T>)
Returns a message body, for the serializer, which can be used by the transport to obtain the serialized message in the desired format.
MessageBody GetMessageBody<T>(SendContext<T> context) where T : class
Parameters
context
SendContext<T>
Returns
Type Parameters
T